Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
73 stars 32 forks source link

Allow mods to sticky a comment to the top of the comments #254

Closed happy-river closed 3 years ago

happy-river commented 3 years ago

Allow a mod to place a comment at the top of the list of comments for a post, to explain why comments are locked (#253) or to set expectations for the discussion. Mods can only stick their own comments to the top of the list, and the comment will automatically be marked as distinguished with the "speaking as mod" tag (though it doesn't stop them from un-distinguishing it afterwards if they choose.) Only one comment can be stuck to the top at a time and a new stuck comment will unstick an older one.

When someone makes a new comment on a post that has a sticky comment, it will be inserted before the sticky comment. This is odd but not that much odder than what we already do (inserting new comments at the beginning when after a refresh they will appear at the end), and the alternative of inserting the new comment after the sticky comment might place the new one out of view if the sticky comment is long or has many replies.