瀏覽代碼

Fix feeds

Markus-Rost 4 年之前
父節點
當前提交
95fbc5e2f3
共有 3 個文件被更改,包括 5 次插入5 次删除
  1. 2 2
      .env.example
  2. 1 1
      RcGcDb
  3. 2 2
      dashboard/index.js

+ 2 - 2
.env.example

@@ -21,8 +21,8 @@ invite="https://discord.gg/v77RTk5"
 # Link to the patreon page for the bot
 # Link to the patreon page for the bot
 patreon="https://www.patreon.com/WikiBot"
 patreon="https://www.patreon.com/WikiBot"
 # API token for phabricator.wikimedia.org
 # API token for phabricator.wikimedia.org
-phabricator-wikimedia="<token>"
+phabricator-wikimedia=""
 # API token for phabricator.miraheze.org
 # API token for phabricator.miraheze.org
-phabricator-miraheze="<token>"
+phabricator-miraheze=""
 # Path to a log file for usage statistics
 # Path to a log file for usage statistics
 usagelog=""
 usagelog=""

+ 1 - 1
RcGcDb

@@ -1 +1 @@
-Subproject commit 4025f15e1a9117587730ce65167e73290919226f
+Subproject commit d4c44da1263a89f816b97fb3c02e36245bfb2094

+ 2 - 2
dashboard/index.js

@@ -22,9 +22,9 @@ const files = new Map([
 	...fs.readdirSync( './i18n/widgets' ).map( file => {
 	...fs.readdirSync( './i18n/widgets' ).map( file => {
 		return [`/src/widgets/${file}`, `./i18n/widgets/${file}`];
 		return [`/src/widgets/${file}`, `./i18n/widgets/${file}`];
 	} ),
 	} ),
-	...fs.readdirSync( './RcGcDb/locale/widgets' ).map( file => {
+	...( fs.existsSync('./RcGcDb/start.py') ? fs.readdirSync( './RcGcDb/locale/widgets' ).map( file => {
 		return [`/src/widgets/RcGcDb/${file}`, `./RcGcDb/locale/widgets/${file}`];
 		return [`/src/widgets/RcGcDb/${file}`, `./RcGcDb/locale/widgets/${file}`];
-	} )
+	} ) : [] )
 ].map( ([file, filepath]) => {
 ].map( ([file, filepath]) => {
 	let contentType = 'text/html';
 	let contentType = 'text/html';
 	switch ( path.extname(file) ) {
 	switch ( path.extname(file) ) {