From 57fe623ebe1bcdb7a52e7330570c045a57a667e1 Mon Sep 17 00:00:00 2001 From: vulet Date: Thu, 14 Jan 2021 20:00:03 +0800 Subject: [PATCH] refactor(config): move subject --- commands/fediverse/media.js | 2 +- config.example.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/fediverse/media.js b/commands/fediverse/media.js index a789a49..ca5c8fa 100644 --- a/commands/fediverse/media.js +++ b/commands/fediverse/media.js @@ -70,7 +70,7 @@ exports.runQuery = async (client, room, userInput, registrar, { isReply, hasMedi if(!chunks.length || chunks.length < !!isReply + !!hasMedia) throw ''; let replyId = null; let mediaURL = null; - const subject = hasSubject ? registrar.config.matrix.subject : null; + const subject = hasSubject ? registrar.config.fediverse.subject : null; if(isReply) { replyId = chunks[0]; chunks.shift(); diff --git a/config.example.js b/config.example.js index 5efd344..9244035 100644 --- a/config.example.js +++ b/config.example.js @@ -3,16 +3,16 @@ module.exports = { domain: 'https://your_homeserver.com', user: 'your_user', password: 'your_password', - domains: [ 'your_homeserver.com' ], - subject: '' + domains: [ 'your_homeserver.com' ] }, fediverse: { domain: 'https://your_federation.com', token: 'your_federation_token', + subject: '', mimetypes: { whitelist: [], blacklist: [] - }, + } }, archive: { domain: 'archive.is',