Skip to content

Commit

Permalink
fix: disable non-redflags for moderators
Browse files Browse the repository at this point in the history
  • Loading branch information
double-beep authored Jul 6, 2024
1 parent 9c99d76 commit 7b35c3b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,13 @@ export class Popover {
}

// flag & delete
if (flag && reportType !== FlagNames.NoFlag) {
if (flag && reportType !== FlagNames.NoFlag
// as requested by Zoe: https://chat.stackoverflow.com/transcript/message/57483258
&& (!StackExchange.options.user.isModerator
|| reportType === FlagNames.Spam
|| reportType === FlagNames.Rude
)
) {
const humanFlag = getHumanFromDisplayName(reportType);
const fProgress = this.post.progress.addItem(`Flagging ${humanFlag}...`);

Expand Down

0 comments on commit 7b35c3b

Please sign in to comment.