feat(fediverse): automatically attach mentions to reply. refactor(mentions): clean-up.
This commit is contained in:
parent
f37e2471c0
commit
1e8577f865
2 changed files with 9 additions and 9 deletions
|
@ -47,6 +47,7 @@ const run = async (roomId, content, replyId, mediaURL, subject) => {
|
|||
const media = await mediaDownload(mediaURL, config.fediverse.mimetypes);
|
||||
mediaId = await mediaUpload(config.fediverse, media);
|
||||
}
|
||||
if (replyId) content = await fediverse.utils.getStatusMentions(replyId).then(m => m.concat(content));
|
||||
const response = await axios({
|
||||
method: 'POST',
|
||||
url: `${config.fediverse.domain}/api/v1/statuses`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue