+const ACTIVITY_PUB = {
+ POTENTIAL_ACCEPT_HEADERS: [
+ 'application/activity+json',
+ 'application/ld+json',
+ 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'
+ ],
+ ACCEPT_HEADER: 'application/activity+json, application/ld+json',
+ PUBLIC: 'https://www.w3.org/ns/activitystreams#Public',
+ COLLECTION_ITEMS_PER_PAGE: 10,
+ FETCH_PAGE_LIMIT: 100,
+ MAX_HTTP_ATTEMPT: 5,
+ URL_MIME_TYPES: {
+ VIDEO: [ 'video/mp4', 'video/webm', 'video/ogg' ], // TODO: Merge with VIDEO_MIMETYPE_EXT
+ TORRENT: [ 'application/x-bittorrent' ],
+ MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ]
+ },
+ MAX_RECURSION_COMMENTS: 100,
+ ACTOR_REFRESH_INTERVAL: 3600 * 24 * 1000 // 1 day