From 66386213a1f846bd4bd72ad509504e7b418fe305 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Sun, 9 Aug 2026 04:18:57 +0200 Subject: [PATCH] ngfd --- public/s/js/comments.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/s/js/comments.js b/public/s/js/comments.js index 21386c9..41b6aae 100644 --- a/public/s/js/comments.js +++ b/public/s/js/comments.js @@ -1140,6 +1140,7 @@ class CommentSystem { } quoteComment(id, openerEl, body) { + if (!window.f0ckSession || !window.f0ckSession.logged_in) return; // If no reply input open anywhere, open the local one let textarea = document.querySelector('.comment-input.reply-input textarea'); let isNew = false; @@ -3212,6 +3213,9 @@ class CommentSystem { if (target.classList.contains('comment-permalink') || target.closest('.comment-time')) { const el = target.closest('.comment-permalink, .comment-time'); if (el) { + if (!window.f0ckSession || !window.f0ckSession.logged_in) { + return; // Let standard anchor link behavior scroll/jump to #c{id} + } const id = el.dataset.id; const commentEl = el.closest('[id^="c"]'); const body = commentEl ? commentEl.querySelector('.comment-body') : null;