-// To how many pods we send requests
-const REQUESTS_LIMIT_PODS = 10
-// How many requests we send to a pod per interval
-const REQUESTS_LIMIT_PER_POD = 5
-
-const REQUESTS_VIDEO_QADU_LIMIT_PODS = 10
-// The QADU requests are not big
-const REQUESTS_VIDEO_QADU_LIMIT_PER_POD = 50
-
-const REQUESTS_VIDEO_EVENT_LIMIT_PODS = 10
-// The EVENTS requests are not big
-const REQUESTS_VIDEO_EVENT_LIMIT_PER_POD = 50
-
-// Number of requests to retry for replay requests module
-const RETRY_REQUESTS = 5
-
-const REMOTE_SCHEME = {
- HTTP: 'https',
- WS: 'wss'
+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