refactor(config): move subject
This commit is contained in:
parent
65809d235b
commit
57fe623ebe
2 changed files with 4 additions and 4 deletions
|
@ -70,7 +70,7 @@ exports.runQuery = async (client, room, userInput, registrar, { isReply, hasMedi
|
||||||
if(!chunks.length || chunks.length < !!isReply + !!hasMedia) throw '';
|
if(!chunks.length || chunks.length < !!isReply + !!hasMedia) throw '';
|
||||||
let replyId = null;
|
let replyId = null;
|
||||||
let mediaURL = null;
|
let mediaURL = null;
|
||||||
const subject = hasSubject ? registrar.config.matrix.subject : null;
|
const subject = hasSubject ? registrar.config.fediverse.subject : null;
|
||||||
if(isReply) {
|
if(isReply) {
|
||||||
replyId = chunks[0];
|
replyId = chunks[0];
|
||||||
chunks.shift();
|
chunks.shift();
|
||||||
|
|
|
@ -3,16 +3,16 @@ module.exports = {
|
||||||
domain: 'https://your_homeserver.com',
|
domain: 'https://your_homeserver.com',
|
||||||
user: 'your_user',
|
user: 'your_user',
|
||||||
password: 'your_password',
|
password: 'your_password',
|
||||||
domains: [ 'your_homeserver.com' ],
|
domains: [ 'your_homeserver.com' ]
|
||||||
subject: ''
|
|
||||||
},
|
},
|
||||||
fediverse: {
|
fediverse: {
|
||||||
domain: 'https://your_federation.com',
|
domain: 'https://your_federation.com',
|
||||||
token: 'your_federation_token',
|
token: 'your_federation_token',
|
||||||
|
subject: '',
|
||||||
mimetypes: {
|
mimetypes: {
|
||||||
whitelist: [],
|
whitelist: [],
|
||||||
blacklist: []
|
blacklist: []
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
archive: {
|
archive: {
|
||||||
domain: 'archive.is',
|
domain: 'archive.is',
|
||||||
|
|
Loading…
Reference in a new issue