diff options
author | Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com> | 2020-06-03 09:42:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 09:42:07 +0200 |
commit | 3092e9bbb05fe292fd13bc685b89069c3dda55d9 (patch) | |
tree | 42b9d04dd7749e835e09cb912677aaad21333a5d /server/initializers/config.ts | |
parent | 78646451c9896db3c2239270cd7e100305749f41 (diff) | |
download | PeerTube-3092e9bbb05fe292fd13bc685b89069c3dda55d9.tar.gz PeerTube-3092e9bbb05fe292fd13bc685b89069c3dda55d9.tar.zst PeerTube-3092e9bbb05fe292fd13bc685b89069c3dda55d9.zip |
Make federation of unlisted videos an instance-level server preference (#2802)
* Add preference for federating unlisted videos
* Connect unlisted video federation with new preference
* Apply pull request feedback
* Fix lint issues
* Remove preference for federating unlisted videos from web admin interface
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index e2920ce9e..44fd9045b 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -155,6 +155,11 @@ const CONFIG = { | |||
155 | URL: config.get<string>('plugins.index.url') | 155 | URL: config.get<string>('plugins.index.url') |
156 | } | 156 | } |
157 | }, | 157 | }, |
158 | FEDERATION: { | ||
159 | VIDEOS: { | ||
160 | FEDERATE_UNLISTED: config.get<boolean>('federation.videos.federate_unlisted') | ||
161 | } | ||
162 | }, | ||
158 | ADMIN: { | 163 | ADMIN: { |
159 | get EMAIL () { return config.get<string>('admin.email') } | 164 | get EMAIL () { return config.get<string>('admin.email') } |
160 | }, | 165 | }, |