diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/models/abuse/abuse-query-builder.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/models/abuse/abuse-query-builder.ts b/server/models/abuse/abuse-query-builder.ts index 532459144..025e6ba55 100644 --- a/server/models/abuse/abuse-query-builder.ts +++ b/server/models/abuse/abuse-query-builder.ts | |||
@@ -48,7 +48,10 @@ function buildAbuseListQuery (options: BuildAbusesQueryOptions, type: 'count' | | |||
48 | ] | 48 | ] |
49 | 49 | ||
50 | if (options.serverAccountId || options.userAccountId) { | 50 | if (options.serverAccountId || options.userAccountId) { |
51 | whereAnd.push('"abuse"."reporterAccountId" NOT IN (' + buildBlockedAccountSQL([ options.serverAccountId, options.userAccountId ]) + ')') | 51 | whereAnd.push( |
52 | '"abuse"."reporterAccountId" IS NULL OR ' + | ||
53 | '"abuse"."reporterAccountId" NOT IN (' + buildBlockedAccountSQL([ options.serverAccountId, options.userAccountId ]) + ')' | ||
54 | ) | ||
52 | } | 55 | } |
53 | 56 | ||
54 | if (options.reporterAccountId) { | 57 | if (options.reporterAccountId) { |