pl-fe: Fix contexts
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
a636ebdc40
commit
d5a8a34ada
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ const importStatus = (state: State, status: Pick<Status, 'id' | 'in_reply_to_id'
|
|||
if (!inReplyToId) return;
|
||||
|
||||
const replies = state.replies[inReplyToId] || [];
|
||||
const newReplies = [...replies, id].toSorted();
|
||||
const newReplies = [...new Set([...replies, id])].toSorted();
|
||||
|
||||
state.replies[inReplyToId] = newReplies;
|
||||
state.inReplyTos[id] = inReplyToId;
|
||||
|
|
Loading…
Reference in a new issue