فهرست منبع

fix: blacklistedCommunityStationNames issues

Owen Diffey 3 سال پیش
والد
کامیت
32c15713c4
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      backend/config/template.json
  2. 1 1
      backend/logic/actions/stations.js

+ 1 - 1
backend/config/template.json

@@ -59,7 +59,7 @@
 		"secure": false,
 		"SIDname": "SID"
 	},
-	"blacklistedStationNames": ["musare"],
+	"blacklistedCommunityStationNames": ["musare"],
 	"skipConfigVersionCheck": false,
 	"skipDbDocumentsVersionCheck": false,
 	"debug": {

+ 1 - 1
backend/logic/actions/stations.js

@@ -2579,7 +2579,7 @@ export default {
 			"station"
 		];
 
-		if (data.type === "community" && config.get("blacklistedCommunityStationNames "))
+		if (data.type === "community" && config.has("blacklistedCommunityStationNames"))
 			blacklist = [...blacklist, ...config.get("blacklistedCommunityStationNames")];
 
 		async.waterfall(