]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix abuse reportee search query
authorChocobozzz <me@florianbigard.com>
Wed, 26 Aug 2020 13:44:19 +0000 (15:44 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 26 Aug 2020 13:44:19 +0000 (15:44 +0200)
server/models/abuse/abuse-query-builder.ts

index 9d7cb75aa37cf75b8d7145fd632ceaa3c6272914..53245914441c534c39a14b3022901ecdacb59097 100644 (file)
@@ -42,7 +42,7 @@ function buildAbuseListQuery (options: BuildAbusesQueryOptions, type: 'count' |
     'LEFT JOIN "videoBlacklist" ON "videoBlacklist"."videoId" = "video"."id"',
     'LEFT JOIN "videoChannel" ON "video"."channelId" = "videoChannel"."id"',
     'LEFT JOIN "account" "reporterAccount" ON "reporterAccount"."id" = "abuse"."reporterAccountId"',
-    'LEFT JOIN "account" "flaggedAccount" ON "flaggedAccount"."id" = "abuse"."reporterAccountId"',
+    'LEFT JOIN "account" "flaggedAccount" ON "flaggedAccount"."id" = "abuse"."flaggedAccountId"',
     'LEFT JOIN "commentAbuse" ON "commentAbuse"."abuseId" = "abuse"."id"',
     'LEFT JOIN "videoComment" ON "commentAbuse"."videoCommentId" = "videoComment"."id"'
   ]