From 2e32351abd191ad5bb9e979998cdfcd37ad1f94d Mon Sep 17 00:00:00 2001 From: Zhu Chenrui <85378277+boomzero@users.noreply.github.com> Date: Tue, 3 Oct 2023 17:13:44 +0800 Subject: [PATCH] fix #41 Signed-off-by: Zhu Chenrui <85378277+boomzero@users.noreply.github.com> --- XMOJ.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XMOJ.user.js b/XMOJ.user.js index 09d51738..64488589 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -4089,7 +4089,7 @@ int main() let ReplyContentElement = document.createElement("div"); CardBodyElement.appendChild(ReplyContentElement); ReplyContentElement.innerHTML = PurifyHTML(marked.parse(Replies[i].Content)).replaceAll(/@([a-zA-Z0-9]+)/g, `@$1`); if (Replies[i].EditTime != null) { - if (Replies[i].EditPerson !== CurrentUsername) { + if (Replies[i].EditPerson == CurrentUsername) { ReplyContentElement.innerHTML += `最后编辑于${GetRelativeTime(Replies[i].EditTime)}`; } else {