-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 REQUEST_ENDPOINTS: { [ id: string ]: RequestEndpoint } = {
- VIDEOS: 'videos'
-}
-
-const REQUEST_ENDPOINT_ACTIONS: {
- [ id: string ]: {
- [ id: string ]: RemoteVideoRequestType
- }
-} = {}
-REQUEST_ENDPOINT_ACTIONS[REQUEST_ENDPOINTS.VIDEOS] = {
- ADD_VIDEO: 'add-video',
- UPDATE_VIDEO: 'update-video',
- REMOVE_VIDEO: 'remove-video',
- ADD_CHANNEL: 'add-channel',
- UPDATE_CHANNEL: 'update-channel',
- REMOVE_CHANNEL: 'remove-channel',
- ADD_AUTHOR: 'add-author',
- REMOVE_AUTHOR: 'remove-author',
- REPORT_ABUSE: 'report-abuse'
-}
-
-const REQUEST_VIDEO_QADU_ENDPOINT = 'videos/qadu'
-const REQUEST_VIDEO_EVENT_ENDPOINT = 'videos/events'
-
-const REQUEST_VIDEO_QADU_TYPES: { [ id: string ]: RequestVideoQaduType } = {
- LIKES: 'likes',
- DISLIKES: 'dislikes',
- VIEWS: 'views'
-}
-
-const REQUEST_VIDEO_EVENT_TYPES: { [ id: string ]: RequestVideoEventType } = {
- LIKES: 'likes',
- DISLIKES: 'dislikes',
- VIEWS: 'views'
-}
-
-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,
+ URL_MIME_TYPES: {
+ VIDEO: Object.keys(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