mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 17:35:44 +01:00
Fix bug
This commit is contained in:
parent
b07911ec68
commit
01ff8d171a
1 changed files with 2 additions and 2 deletions
|
@ -54,11 +54,11 @@ export default async function renderNote(note: INote, dive = true): Promise<any>
|
||||||
? [`${attributedTo}/followers`].concat(mentions)
|
? [`${attributedTo}/followers`].concat(mentions)
|
||||||
: [];
|
: [];
|
||||||
|
|
||||||
const mentionedUsers = await User.find({
|
const mentionedUsers = note.mentions ? await User.find({
|
||||||
_id: {
|
_id: {
|
||||||
$in: note.mentions
|
$in: note.mentions
|
||||||
}
|
}
|
||||||
});
|
}) : [];
|
||||||
|
|
||||||
const hashtagTags = (note.tags || []).map(tag => renderHashtag(tag));
|
const hashtagTags = (note.tags || []).map(tag => renderHashtag(tag));
|
||||||
const mentionTags = mentionedUsers.map(u => renderMention(u));
|
const mentionTags = mentionedUsers.map(u => renderMention(u));
|
||||||
|
|
Loading…
Reference in a new issue