feat: Implement comment extras including custom emojis, pinned comments, and thread locking, with related UI and access control updates.
This commit is contained in:
@@ -594,6 +594,7 @@ class CommentSystem {
|
|||||||
if (tag === 'input' || tag === 'textarea' || e.target.isContentEditable) return;
|
if (tag === 'input' || tag === 'textarea' || e.target.isContentEditable) return;
|
||||||
|
|
||||||
if (e.key.toLowerCase() === 'c') {
|
if (e.key.toLowerCase() === 'c') {
|
||||||
|
if (!this.user) return;
|
||||||
this.toggleComments();
|
this.toggleComments();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ export default (router, tpl) => {
|
|||||||
data.commentsJSON = Buffer.from(JSON.stringify(data.comments || [])).toString('base64');
|
data.commentsJSON = Buffer.from(JSON.stringify(data.comments || [])).toString('base64');
|
||||||
} else {
|
} else {
|
||||||
data.comments = [];
|
data.comments = [];
|
||||||
|
data.isSubscribed = false;
|
||||||
data.commentsJSON = Buffer.from('[]').toString('base64');
|
data.commentsJSON = Buffer.from('[]').toString('base64');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user