mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Fix bug
This commit is contained in:
parent
d7dd6e5eb5
commit
25b96800bb
@ -54,11 +54,11 @@ export default async function renderNote(note: INote, dive = true): Promise<any>
|
||||
? [`${attributedTo}/followers`].concat(mentions)
|
||||
: [];
|
||||
|
||||
const mentionedUsers = await User.find({
|
||||
const mentionedUsers = note.mentions ? await User.find({
|
||||
_id: {
|
||||
$in: note.mentions
|
||||
}
|
||||
});
|
||||
}) : [];
|
||||
|
||||
const hashtagTags = (note.tags || []).map(tag => renderHashtag(tag));
|
||||
const mentionTags = mentionedUsers.map(u => renderMention(u));
|
||||
|
Loading…
Reference in New Issue
Block a user