diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-22 16:15:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 09:41:54 +0200 |
commit | 1297eb5db651a230474670c5da1517862fb9cc3e (patch) | |
tree | ecad4a0ceb0bb09e3c775262691ac68e9e0aca0c /server/initializers | |
parent | f6eebcb336c067e160a62020a5140d8d992ba384 (diff) | |
download | PeerTube-1297eb5db651a230474670c5da1517862fb9cc3e.tar.gz PeerTube-1297eb5db651a230474670c5da1517862fb9cc3e.tar.zst PeerTube-1297eb5db651a230474670c5da1517862fb9cc3e.zip |
Add refresh video on search
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 99b10a7fc..cd709cd3f 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -181,6 +181,12 @@ const CONFIG = { | |||
181 | LOG: { | 181 | LOG: { |
182 | LEVEL: config.get<string>('log.level') | 182 | LEVEL: config.get<string>('log.level') |
183 | }, | 183 | }, |
184 | SEARCH: { | ||
185 | REMOTE_URI: { | ||
186 | USERS: config.get<boolean>('search.remote_uri.users'), | ||
187 | ANONYMOUS: config.get<boolean>('search.remote_uri.anonymous') | ||
188 | } | ||
189 | }, | ||
184 | ADMIN: { | 190 | ADMIN: { |
185 | get EMAIL () { return config.get<string>('admin.email') } | 191 | get EMAIL () { return config.get<string>('admin.email') } |
186 | }, | 192 | }, |
@@ -462,7 +468,8 @@ const ACTIVITY_PUB = { | |||
462 | MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ] | 468 | MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ] |
463 | }, | 469 | }, |
464 | MAX_RECURSION_COMMENTS: 100, | 470 | MAX_RECURSION_COMMENTS: 100, |
465 | ACTOR_REFRESH_INTERVAL: 3600 * 24 * 1000 // 1 day | 471 | ACTOR_REFRESH_INTERVAL: 3600 * 24 * 1000, // 1 day |
472 | VIDEO_REFRESH_INTERVAL: 3600 * 24 * 1000 // 1 day | ||
466 | } | 473 | } |
467 | 474 | ||
468 | const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = { | 475 | const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = { |
@@ -574,6 +581,7 @@ if (isTestInstance() === true) { | |||
574 | 581 | ||
575 | ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE = 2 | 582 | ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE = 2 |
576 | ACTIVITY_PUB.ACTOR_REFRESH_INTERVAL = 10 * 1000 // 10 seconds | 583 | ACTIVITY_PUB.ACTOR_REFRESH_INTERVAL = 10 * 1000 // 10 seconds |
584 | ACTIVITY_PUB.VIDEO_REFRESH_INTERVAL = 10 * 1000 // 10 seconds | ||
577 | 585 | ||
578 | CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB | 586 | CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB |
579 | 587 | ||