feat: Implement comment extras including custom emojis, pinned comments, and thread locking, with related UI and access control updates.

This commit is contained in:
x
2026-01-25 15:23:47 +01:00
parent a944a7c4e7
commit aed1d24f44
2 changed files with 2 additions and 0 deletions

View File

@@ -594,6 +594,7 @@ class CommentSystem {
if (tag === 'input' || tag === 'textarea' || e.target.isContentEditable) return;
if (e.key.toLowerCase() === 'c') {
if (!this.user) return;
this.toggleComments();
}
});

View File

@@ -59,6 +59,7 @@ export default (router, tpl) => {
data.commentsJSON = Buffer.from(JSON.stringify(data.comments || [])).toString('base64');
} else {
data.comments = [];
data.isSubscribed = false;
data.commentsJSON = Buffer.from('[]').toString('base64');
}