Skip to content

Commit

Permalink
Merge pull request #22590 from Expensify/dangrous-filterdevmoderations
Browse files Browse the repository at this point in the history
Send isDevRequest parameter with FlagComment
  • Loading branch information
chiragsalian authored Jul 13, 2023
2 parents 7872a29 + b66a1ea commit d395b7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import * as Welcome from './Welcome';
import * as PersonalDetailsUtils from '../PersonalDetailsUtils';
import SidebarUtils from '../SidebarUtils';
import * as OptionsListUtils from '../OptionsListUtils';
import * as Environment from '../Environment/Environment';
import * as Localize from '../Localize';

let currentUserAccountID;
Expand Down Expand Up @@ -1892,6 +1893,9 @@ function flagComment(reportID, reportAction, severity) {
const parameters = {
severity,
reportActionID,
// This check is to prevent flooding Concierge with test flags
// If you need to test moderation responses from Concierge on dev, set this to false!
isDevRequest: Environment.isDevelopment(),
};

API.write('FlagComment', parameters, {optimisticData, successData, failureData});
Expand Down

0 comments on commit d395b7c

Please sign in to comment.