Add commentsEnabled field to AS context
authorChocobozzz <me@florianbigard.com>
Fri, 12 Jan 2018 14:58:43 +0000 (15:58 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 12 Jan 2018 14:58:43 +0000 (15:58 +0100)
server/helpers/activitypub.ts

index b6207c9153e15eac5f61ed35146ab621572bbde6..a19726beb45692abe5fb7d4ba6f9030e372d6d51 100644 (file)
@@ -18,7 +18,8 @@ function activityPubContextify <T> (data: T) {
         'nsfw': 'as:sensitive',
         'language': 'http://schema.org/inLanguage',
         'views': 'http://schema.org/Number',
-        'size': 'http://schema.org/Number'
+        'size': 'http://schema.org/Number',
+        'commentsEnabled': 'http://schema.org/Boolean'
       }
     ]
   })