refactor(config): move mimetype
This commit is contained in:
parent
b287d961f3
commit
78c45451c6
2 changed files with 5 additions and 5 deletions
|
@ -46,7 +46,7 @@ const run = async (matrixClient, { roomId }, content, replyId, mediaURL, subject
|
|||
let mediaId = null;
|
||||
const fediverse = registrar.config.fediverse;
|
||||
if(mediaURL) {
|
||||
const media = await mediaDownload(mediaURL, registrar.config.matrix.mimetypes);
|
||||
const media = await mediaDownload(mediaURL, registrar.config.fediverse.mimetypes);
|
||||
mediaId = await mediaUpload(fediverse, media);
|
||||
}
|
||||
const response = await axios({
|
||||
|
|
|
@ -4,15 +4,15 @@ module.exports = {
|
|||
user: 'your_user',
|
||||
password: 'your_password',
|
||||
domains: [ 'your_homeserver.com' ],
|
||||
mimetypes: {
|
||||
whitelist: [],
|
||||
blacklist: []
|
||||
},
|
||||
subject: ''
|
||||
},
|
||||
fediverse: {
|
||||
domain: 'https://your_federation.com',
|
||||
token: 'your_federation_token',
|
||||
mimetypes: {
|
||||
whitelist: [],
|
||||
blacklist: []
|
||||
},
|
||||
},
|
||||
archive: {
|
||||
domain: 'archive.is',
|
||||
|
|
Loading…
Reference in a new issue