aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/abuse/abuse.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-13 14:12:29 +0100
committerChocobozzz <me@florianbigard.com>2022-01-13 14:16:32 +0100
commit3726c3725506d0f8a26ded34f42d7bcfb5d0e639 (patch)
tree1e4ce0d16a0ec4acf6f63ddb4aec6f6f143218d4 /server/models/abuse/abuse.ts
parent696b45deb63bc9f36da9c9ee55c5d4a3a883b87e (diff)
downloadPeerTube-3726c3725506d0f8a26ded34f42d7bcfb5d0e639.tar.gz
PeerTube-3726c3725506d0f8a26ded34f42d7bcfb5d0e639.tar.zst
PeerTube-3726c3725506d0f8a26ded34f42d7bcfb5d0e639.zip
Add missing mediaType info to AP objects
Diffstat (limited to 'server/models/abuse/abuse.ts')
-rw-r--r--server/models/abuse/abuse.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/models/abuse/abuse.ts b/server/models/abuse/abuse.ts
index 4344df006..f85f48e86 100644
--- a/server/models/abuse/abuse.ts
+++ b/server/models/abuse/abuse.ts
@@ -563,6 +563,7 @@ export class AbuseModel extends Model<Partial<AttributesOnly<AbuseModel>>> {
563 return { 563 return {
564 type: 'Flag' as 'Flag', 564 type: 'Flag' as 'Flag',
565 content: this.reason, 565 content: this.reason,
566 mediaType: 'text/markdown',
566 object, 567 object,
567 tag: predefinedReasons.map(r => ({ 568 tag: predefinedReasons.map(r => ({
568 type: 'Hashtag' as 'Hashtag', 569 type: 'Hashtag' as 'Hashtag',