-
Notifications
You must be signed in to change notification settings - Fork 24
restrict closing of posts by non-original posters #474
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
Conversation
liquiddevelopmentnet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good in general, however, I think that displaying a modal when somebody tries to close a help post from another user which is non staff is better because since the field isn't required by discord, they probably won't supply a reason at the first time. That means the command would always has to be run twice. Another reason is that the reason field may get confused because it "technically" has different use cases between certified helpers, mods, and OPs.
I'm aware these are just accessibility improvements, but I think this is worth a discussion.
To be honest, the original poster supplying a reason is fairly pointless. While a modal would be possible, I don't see much of a difference since people can just type the command again. |
As i said, mainly accessibility , your decision in the end |
This is now implemented. Also, I have configured the modal to require at least 11 characters in order to prevent overly lazy texts (e.g. |
liquiddevelopmentnet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
This PR adds the following restrictions when users other than the original poster close help posts:
This does not affect users closing their own posts.
Log message:



Closing without specifying a reason:
Closing using buttons (same message if user has permissions to mod-close the post or doesn't have these permissions):