aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-04 14:04:02 +0100
committerChocobozzz <me@florianbigard.com>2018-01-04 14:04:02 +0100
commita5625b416797fa20f7cccead6201f3faf9427080 (patch)
tree089ad8155f924385d5f528c96cbcec1b52f56c72 /server/initializers
parent4cb6d4578893db310297d7e118ce2fb7ecb952a3 (diff)
downloadPeerTube-a5625b416797fa20f7cccead6201f3faf9427080.tar.gz
PeerTube-a5625b416797fa20f7cccead6201f3faf9427080.tar.zst
PeerTube-a5625b416797fa20f7cccead6201f3faf9427080.zip
Refresh remote accounts
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index d2bcea443..1f18b4401 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -278,7 +278,8 @@ const ACTIVITY_PUB = {
278 VIDEO: [ 'video/mp4', 'video/webm', 'video/ogg' ], // TODO: Merge with VIDEO_MIMETYPE_EXT 278 VIDEO: [ 'video/mp4', 'video/webm', 'video/ogg' ], // TODO: Merge with VIDEO_MIMETYPE_EXT
279 TORRENT: [ 'application/x-bittorrent' ], 279 TORRENT: [ 'application/x-bittorrent' ],
280 MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ] 280 MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ]
281 } 281 },
282 ACTOR_REFRESH_INTERVAL: 3600 * 24 // 1 day
282} 283}
283 284
284const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = { 285const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = {
@@ -350,6 +351,7 @@ if (isTestInstance() === true) {
350 REMOTE_SCHEME.WS = 'ws' 351 REMOTE_SCHEME.WS = 'ws'
351 STATIC_MAX_AGE = '0' 352 STATIC_MAX_AGE = '0'
352 ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE = 2 353 ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE = 2
354 ACTIVITY_PUB.ACTOR_REFRESH_INTERVAL = 60 // 1 minute
353 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB 355 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB
354} 356}
355 357