feat(fediverse): automatically attach mentions to reply. refactor(mentions): clean-up.

This commit is contained in:
vulet 2021-02-26 12:21:41 +08:00
parent f37e2471c0
commit 1e8577f865
2 changed files with 9 additions and 9 deletions

View file

@ -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`,