From 67cbfb9ed5ec8f199f0ff305af017d4437c01b71 Mon Sep 17 00:00:00 2001 From: sy Date: Sun, 2 Apr 2023 00:23:30 +0800 Subject: [PATCH] fix: not show comment correct if user liked the post at the same time --- components/WebMention.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/WebMention.js b/components/WebMention.js index 1a3db184..375a0141 100644 --- a/components/WebMention.js +++ b/components/WebMention.js @@ -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 )