Skip to content

Commit

Permalink
Negative error codes for allowing (#6807)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsolo authored Nov 29, 2023
1 parent 1b7c76f commit 3e82b69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const newAntiAbuseConfig = (
): AntiAbuseConfig => {
return {
antiAbuseOracleUrl: url,
allowRules: new Set([14, 17]),
allowRules: new Set([-17, -18]),
blockRelayAbuseErrorCodes: new Set([0, 8, 10, 13, 15, 18]),
blockNotificationsErrorCodes: new Set([7, 9]),
blockEmailsErrorCodes: new Set([0, 1, 2, 3, 4, 8, 10, 13, 15]),
Expand Down
2 changes: 1 addition & 1 deletion packages/identity-service/src/utils/antiAbuse.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const models = require('../models')
const aaoEndpoint =
config.get('aaoEndpoint') || 'https://antiabuseoracle.audius.co'

const allowRules = new Set([14, 17])
const allowRules = new Set([-17, -18])
const blockRelayAbuseErrorCodes = new Set([0, 8, 10, 13, 15, 18])
const blockNotificationsErrorCodes = new Set([7, 9])
const blockEmailsErrorCodes = new Set([0, 1, 2, 3, 4, 8, 10, 13, 15])
Expand Down

0 comments on commit 3e82b69

Please sign in to comment.