diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-29 11:34:44 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-29 11:34:44 +0100 |
commit | 165cdc75bf1942ed687f78094c2bd366839a7c99 (patch) | |
tree | 4b174114bf175603202c3672c5dc04c22582701d /server/initializers/constants.ts | |
parent | 14063e965672ed724b7bfea6686acc14923e07a7 (diff) | |
download | PeerTube-165cdc75bf1942ed687f78094c2bd366839a7c99.tar.gz PeerTube-165cdc75bf1942ed687f78094c2bd366839a7c99.tar.zst PeerTube-165cdc75bf1942ed687f78094c2bd366839a7c99.zip |
Fix well known and json parser with mastodon
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 82373ba84..6d8aa7332 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -219,7 +219,11 @@ const VIDEO_MIMETYPE_EXT = { | |||
219 | const SERVER_ACCOUNT_NAME = 'peertube' | 219 | const SERVER_ACCOUNT_NAME = 'peertube' |
220 | 220 | ||
221 | const ACTIVITY_PUB = { | 221 | const ACTIVITY_PUB = { |
222 | ACCEPT_HEADER: 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"', | 222 | ACCEPT_HEADERS: [ |
223 | 'application/activity+json, application/ld+json', | ||
224 | 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' | ||
225 | ], | ||
226 | ACCEPT_HEADER: '', | ||
223 | PUBLIC: 'https://www.w3.org/ns/activitystreams#Public', | 227 | PUBLIC: 'https://www.w3.org/ns/activitystreams#Public', |
224 | COLLECTION_ITEMS_PER_PAGE: 10, | 228 | COLLECTION_ITEMS_PER_PAGE: 10, |
225 | FETCH_PAGE_LIMIT: 100, | 229 | FETCH_PAGE_LIMIT: 100, |
@@ -230,6 +234,7 @@ const ACTIVITY_PUB = { | |||
230 | MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ] | 234 | MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ] |
231 | } | 235 | } |
232 | } | 236 | } |
237 | ACTIVITY_PUB.ACCEPT_HEADER = ACTIVITY_PUB.ACCEPT_HEADERS[0] | ||
233 | 238 | ||
234 | // --------------------------------------------------------------------------- | 239 | // --------------------------------------------------------------------------- |
235 | 240 | ||