hgfd
This commit is contained in:
@@ -2274,14 +2274,8 @@ class CommentSystem {
|
||||
: `<div class="comment-avatar">${comment.username ? `<a href="/user/${comment.username}">` : ''}<img src="${comment.avatar_file ? `/a/${comment.avatar_file}` : (comment.avatar ? `/t/${comment.avatar}.webp` : '/a/default.png')}">${comment.username ? `</a>` : ''}</div>`;
|
||||
|
||||
const isAnon = isAnonGuest || comment.is_anon || comment.anon_fingerprint || comment.username === 'anonymous' || (comment.username && comment.username.startsWith('anon_'));
|
||||
const anonFp = comment.anon_fingerprint || '';
|
||||
const anonShortFp = comment.anon_short_fingerprint || (anonFp ? anonFp.slice(7, 15) : '');
|
||||
const anonTripcodeHtml = anonShortFp
|
||||
? ` <span class="anon-tripcode" data-fingerprint="${this.escapeHtml(anonFp)}" tooltip="${this.escapeHtml(anonFp)} (OpenSSH Ed25519)">[${this.escapeHtml(anonShortFp)}]</span>`
|
||||
: '';
|
||||
|
||||
const authorHtml = isAnon
|
||||
? `<span class="comment-author">anonymous</span>${anonTripcodeHtml}`
|
||||
? `<span class="comment-author">anonymous</span>`
|
||||
: (comment.username
|
||||
? `<a href="/user/${comment.username}" class="comment-author" tooltip="ID: ${authorUserId ?? ''}" ${authorUsernameColor ? `style="color: ${authorUsernameColor}"` : ''}>${this.escapeHtml(comment.display_name || comment.username)}</a>`
|
||||
: '<span class="comment-author">System</span>');
|
||||
|
||||
@@ -21133,7 +21133,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
clearReportError();
|
||||
reportModal.style.display = 'flex';
|
||||
document.body.classList.add('modal-open');
|
||||
setTimeout(() => { try { reportReason.focus(); } catch(err){} }, 50);
|
||||
if (window.renderReportRecaptcha) window.renderReportRecaptcha();
|
||||
}
|
||||
|
||||
@@ -21148,7 +21147,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
clearReportError();
|
||||
reportModal.style.display = 'flex';
|
||||
document.body.classList.add('modal-open');
|
||||
setTimeout(() => { try { reportReason.focus(); } catch(err){} }, 50);
|
||||
if (window.renderReportRecaptcha) window.renderReportRecaptcha();
|
||||
}
|
||||
|
||||
@@ -21163,7 +21161,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
clearReportError();
|
||||
reportModal.style.display = 'flex';
|
||||
document.body.classList.add('modal-open');
|
||||
setTimeout(() => { try { reportReason.focus(); } catch(err){} }, 50);
|
||||
if (window.renderReportRecaptcha) window.renderReportRecaptcha();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user