chore(config): tidy up
This commit is contained in:
parent
dc0a6ff922
commit
f013eb1c98
18 changed files with 76 additions and 62 deletions
|
@ -3,8 +3,8 @@ const axios = require('axios');
|
|||
exports.runQuery = function (matrixClient, room, userInput, registrar) {
|
||||
axios({
|
||||
method: 'POST',
|
||||
url: `${registrar.config.fediverse}/api/v1/statuses`,
|
||||
headers: { Authorization: `Bearer ${registrar.config.fediverseToken}` },
|
||||
url: `${registrar.config.fediverse.domain}/api/v1/statuses`,
|
||||
headers: { Authorization: `Bearer ${registrar.config.fediverse.token}` },
|
||||
data: { status: userInput, content_type: `text/markdown` },
|
||||
}).then((response) => {
|
||||
matrixClient.sendHtmlNotice(room.roomId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue