Fix polls & own reactions not showing in replies
This commit is contained in:
parent
2375d2a8a6
commit
3f58162cf4
|
@ -236,6 +236,12 @@ export const NoteRepository = db.getRepository(Note).extend({
|
||||||
uri: note.uri || undefined,
|
uri: note.uri || undefined,
|
||||||
url: note.url || undefined,
|
url: note.url || undefined,
|
||||||
updatedAt: note.updatedAt?.toISOString() || undefined,
|
updatedAt: note.updatedAt?.toISOString() || undefined,
|
||||||
|
poll: note.hasPoll ? populatePoll(note, meId) : undefined,
|
||||||
|
...(meId
|
||||||
|
? {
|
||||||
|
myReaction: populateMyReaction(note, meId, options?._hint_),
|
||||||
|
}
|
||||||
|
: {}),
|
||||||
|
|
||||||
...(opts.detail
|
...(opts.detail
|
||||||
? {
|
? {
|
||||||
|
@ -252,14 +258,6 @@ export const NoteRepository = db.getRepository(Note).extend({
|
||||||
_hint_: options?._hint_,
|
_hint_: options?._hint_,
|
||||||
})
|
})
|
||||||
: undefined,
|
: undefined,
|
||||||
|
|
||||||
poll: note.hasPoll ? populatePoll(note, meId) : undefined,
|
|
||||||
|
|
||||||
...(meId
|
|
||||||
? {
|
|
||||||
myReaction: populateMyReaction(note, meId, options?._hint_),
|
|
||||||
}
|
|
||||||
: {}),
|
|
||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue