Skip to content

Commit

Permalink
修复编辑用户显示
Browse files Browse the repository at this point in the history
Signed-off-by: Zhu Chenrui <85378277+boomzero@users.noreply.github.com>
  • Loading branch information
boomzero committed Oct 4, 2023
1 parent 81a4e34 commit 51916b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XMOJ.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4117,7 +4117,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, `<b>@</b><span class="ms-1 Usernames">$1</span>`);
if (Replies[i].EditTime != null) {
if (Replies[i].EditPerson == CurrentUsername) {
if (Replies[i].EditPerson == Replies[i].UserID) {
ReplyContentElement.innerHTML += `<span class="text-muted" style="font-size: 12px">最后编辑于${GetRelativeTime(Replies[i].EditTime)}</span>`;
}
else {
Expand Down

0 comments on commit 51916b7

Please sign in to comment.