diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-24 15:05:51 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-07-31 11:35:19 +0200 |
commit | edbc9325462ddf4536775871ebc25e06f46612d1 (patch) | |
tree | 9671dd51303e75d48d4f4f9a1df7a1960e33780d /server/lib/moderation.ts | |
parent | 20516920d2b72c8a18bc24b9740f7176aa962da2 (diff) | |
download | PeerTube-edbc9325462ddf4536775871ebc25e06f46612d1.tar.gz PeerTube-edbc9325462ddf4536775871ebc25e06f46612d1.tar.zst PeerTube-edbc9325462ddf4536775871ebc25e06f46612d1.zip |
Add server API to abuse messages
Diffstat (limited to 'server/lib/moderation.ts')
-rw-r--r-- | server/lib/moderation.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/moderation.ts b/server/lib/moderation.ts index 4fc9cd747..b140d5aa9 100644 --- a/server/lib/moderation.ts +++ b/server/lib/moderation.ts | |||
@@ -213,7 +213,7 @@ async function createAbuse (options: { | |||
213 | await sendAbuse(reporterAccount.Actor, abuseInstance, abuseInstance.FlaggedAccount, transaction) | 213 | await sendAbuse(reporterAccount.Actor, abuseInstance, abuseInstance.FlaggedAccount, transaction) |
214 | } | 214 | } |
215 | 215 | ||
216 | const abuseJSON = abuseInstance.toFormattedJSON() | 216 | const abuseJSON = abuseInstance.toFormattedAdminJSON() |
217 | auditLogger.create(reporterAccount.Actor.getIdentifier(), new AbuseAuditView(abuseJSON)) | 217 | auditLogger.create(reporterAccount.Actor.getIdentifier(), new AbuseAuditView(abuseJSON)) |
218 | 218 | ||
219 | Notifier.Instance.notifyOnNewAbuse({ | 219 | Notifier.Instance.notifyOnNewAbuse({ |