diff --git a/src/UserscriptTools/Post.ts b/src/UserscriptTools/Post.ts index a64273a..6303a05 100644 --- a/src/UserscriptTools/Post.ts +++ b/src/UserscriptTools/Post.ts @@ -409,9 +409,10 @@ export default class Post { const userRep = StackExchange.options.user.rep; - // >20k rep users can vote to delete answers with score < 0 - return ( + return StackExchange.options.user.isModerator || ( + // if the delete button is visible, then the user can vote to delete Boolean(deleteButton) + // >20k rep users can vote to delete answers with score < 0 || (userRep >= 20_000 && (popover ? this.score <= 0 : this.score < 0)) ) // can delete if post isn't already deleted && !this.deleted;