Skip to content

Commit

Permalink
fix: Lowercase all flagged address
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR committed Dec 4, 2023
1 parent b10e2fe commit f1e03e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers/moderation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export async function loadModerationData(url = moderationURL): Promise<boolean>
}

flaggedIps = body.flaggedIps;
flaggedAddresses = body.flaggedAddresses;
flaggedAddresses = body.flaggedAddresses || [];
flaggedAddresses = flaggedAddresses.map((address: string) => address.toLowerCase());
flaggedProposalTitleKeywords = body.flaggedProposalTitleKeywords;
flaggedProposalBodyKeywords = body.flaggedProposalBodyKeywords;

Expand Down

0 comments on commit f1e03e7

Please sign in to comment.