Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 29, 2020

Conversation

happy-river
Copy link
Contributor

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.

@Polsaker Polsaker merged commit 5b1d8bd into Phuks-co:master Nov 29, 2020
@happy-river happy-river deleted the sticky-comment branch December 5, 2020 00:24
@Polsaker Polsaker mentioned this pull request Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants