diff options
author | kontrollanten <6680299+kontrollanten@users.noreply.github.com> | 2022-02-15 08:24:22 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-02-28 10:56:37 +0100 |
commit | c5ca7e1e0c735d1e658f9ef524a61d19f6a50fea (patch) | |
tree | 84c83e4ca9d7950ee2b5edad8b76dc7d5ab31031 /server/tests/fixtures/peertube-plugin-test | |
parent | c729caf6cc34630877a0e5a1bda1719384cd0c8a (diff) | |
download | PeerTube-c5ca7e1e0c735d1e658f9ef524a61d19f6a50fea.tar.gz PeerTube-c5ca7e1e0c735d1e658f9ef524a61d19f6a50fea.tar.zst PeerTube-c5ca7e1e0c735d1e658f9ef524a61d19f6a50fea.zip |
add filter:api.video-playlist.videos.list.* hooks
closes #4775
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test')
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test/main.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test/main.js b/server/tests/fixtures/peertube-plugin-test/main.js index 90951d611..7715ab6e8 100644 --- a/server/tests/fixtures/peertube-plugin-test/main.js +++ b/server/tests/fixtures/peertube-plugin-test/main.js | |||
@@ -45,6 +45,16 @@ async function register ({ registerHook, registerSetting, settingsManager, stora | |||
45 | }) | 45 | }) |
46 | 46 | ||
47 | registerHook({ | 47 | registerHook({ |
48 | target: 'filter:api.video-playlist.videos.list.params', | ||
49 | handler: obj => addToCount(obj) | ||
50 | }) | ||
51 | |||
52 | registerHook({ | ||
53 | target: 'filter:api.video-playlist.videos.list.result', | ||
54 | handler: obj => addToTotal(obj) | ||
55 | }) | ||
56 | |||
57 | registerHook({ | ||
48 | target: 'filter:api.accounts.videos.list.params', | 58 | target: 'filter:api.accounts.videos.list.params', |
49 | handler: obj => addToCount(obj) | 59 | handler: obj => addToCount(obj) |
50 | }) | 60 | }) |