fix: not show comment correct if user liked the post at the same time

This commit is contained in:
sy
2023-04-02 00:23:30 +08:00
parent 3b18b87122
commit 67cbfb9ed5

View File

@@ -95,7 +95,7 @@ const WebmentionReplies = ({ target }) => {
...new Map(mentions.map((item) => [item.author.url, item])).values()
].sort((a, b) => new Date(a['wm-received']) - new Date(b['wm-received']))
const replies = distinctMentions.filter(
const replies = mentions.filter(
(mention) => 'in-reply-to' in mention && 'content' in mention
)