aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.ts')
-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