mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Add server API to abuse messages
This commit is contained in:
parent
20516920d2
commit
edbc932546
28 changed files with 1054 additions and 209 deletions
|
@ -213,7 +213,7 @@ async function createAbuse (options: {
|
|||
await sendAbuse(reporterAccount.Actor, abuseInstance, abuseInstance.FlaggedAccount, transaction)
|
||||
}
|
||||
|
||||
const abuseJSON = abuseInstance.toFormattedJSON()
|
||||
const abuseJSON = abuseInstance.toFormattedAdminJSON()
|
||||
auditLogger.create(reporterAccount.Actor.getIdentifier(), new AbuseAuditView(abuseJSON))
|
||||
|
||||
Notifier.Instance.notifyOnNewAbuse({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue