diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-20 15:32:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-20 15:42:27 +0200 |
commit | b3af2601da92a6c0835cb2473b4c7a41a0d86e98 (patch) | |
tree | a20984ec2df1c22f235d03909177629892721c54 /server/tests/fixtures/peertube-plugin-test-three/main.js | |
parent | 8c7725dc3c01a73bf56a48c8b192d144bfdc3ffe (diff) | |
download | PeerTube-b3af2601da92a6c0835cb2473b4c7a41a0d86e98.tar.gz PeerTube-b3af2601da92a6c0835cb2473b4c7a41a0d86e98.tar.zst PeerTube-b3af2601da92a6c0835cb2473b4c7a41a0d86e98.zip |
Add ability to remove privacies using plugins
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-three/main.js')
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test-three/main.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test-three/main.js b/server/tests/fixtures/peertube-plugin-test-three/main.js index 4945feb55..f2b89bcf0 100644 --- a/server/tests/fixtures/peertube-plugin-test-three/main.js +++ b/server/tests/fixtures/peertube-plugin-test-three/main.js | |||
@@ -5,7 +5,9 @@ async function register ({ | |||
5 | storageManager, | 5 | storageManager, |
6 | videoCategoryManager, | 6 | videoCategoryManager, |
7 | videoLicenceManager, | 7 | videoLicenceManager, |
8 | videoLanguageManager | 8 | videoLanguageManager, |
9 | videoPrivacyManager, | ||
10 | playlistPrivacyManager | ||
9 | }) { | 11 | }) { |
10 | videoLanguageManager.addLanguage('al_bhed', 'Al Bhed') | 12 | videoLanguageManager.addLanguage('al_bhed', 'Al Bhed') |
11 | videoLanguageManager.addLanguage('al_bhed2', 'Al Bhed 2') | 13 | videoLanguageManager.addLanguage('al_bhed2', 'Al Bhed 2') |
@@ -21,6 +23,9 @@ async function register ({ | |||
21 | videoLicenceManager.addLicence(43, 'High best licence') | 23 | videoLicenceManager.addLicence(43, 'High best licence') |
22 | videoLicenceManager.deleteLicence(1) // Attribution | 24 | videoLicenceManager.deleteLicence(1) // Attribution |
23 | videoLicenceManager.deleteLicence(7) // Public domain | 25 | videoLicenceManager.deleteLicence(7) // Public domain |
26 | |||
27 | videoPrivacyManager.deletePrivacy(2) | ||
28 | playlistPrivacyManager.deletePlaylistPrivacy(3) | ||
24 | } | 29 | } |
25 | 30 | ||
26 | async function unregister () { | 31 | async function unregister () { |