aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-12 15:58:43 +0100
committerChocobozzz <me@florianbigard.com>2018-01-12 15:58:43 +0100
commit0af3182bf77aac7fc0a122d559ccb1941e75db23 (patch)
treeba085a7b3e7cdbc57bc44e6bcfa86e992fc92f5e /server/helpers
parent9fb3abfdac5c4bffe9992a457e5210d3aa743952 (diff)
downloadPeerTube-0af3182bf77aac7fc0a122d559ccb1941e75db23.tar.gz
PeerTube-0af3182bf77aac7fc0a122d559ccb1941e75db23.tar.zst
PeerTube-0af3182bf77aac7fc0a122d559ccb1941e75db23.zip
Add commentsEnabled field to AS context
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/activitypub.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts
index b6207c915..a19726beb 100644
--- a/server/helpers/activitypub.ts
+++ b/server/helpers/activitypub.ts
@@ -18,7 +18,8 @@ function activityPubContextify <T> (data: T) {
18 'nsfw': 'as:sensitive', 18 'nsfw': 'as:sensitive',
19 'language': 'http://schema.org/inLanguage', 19 'language': 'http://schema.org/inLanguage',
20 'views': 'http://schema.org/Number', 20 'views': 'http://schema.org/Number',
21 'size': 'http://schema.org/Number' 21 'size': 'http://schema.org/Number',
22 'commentsEnabled': 'http://schema.org/Boolean'
22 } 23 }
23 ] 24 ]
24 }) 25 })