aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/activitypub/client.ts2
-rw-r--r--server/controllers/api/search/search-videos.ts3
2 files changed, 3 insertions, 2 deletions
diff --git a/server/controllers/activitypub/client.ts b/server/controllers/activitypub/client.ts
index c4d1be121..fc27ebbe8 100644
--- a/server/controllers/activitypub/client.ts
+++ b/server/controllers/activitypub/client.ts
@@ -66,11 +66,13 @@ activityPubClientRouter.get('/accounts?/:name/playlists',
66) 66)
67activityPubClientRouter.get('/accounts?/:name/likes/:videoId', 67activityPubClientRouter.get('/accounts?/:name/likes/:videoId',
68 executeIfActivityPub, 68 executeIfActivityPub,
69 cacheRoute(ROUTE_CACHE_LIFETIME.ACTIVITY_PUB.VIDEOS),
69 asyncMiddleware(getAccountVideoRateValidatorFactory('like')), 70 asyncMiddleware(getAccountVideoRateValidatorFactory('like')),
70 getAccountVideoRateFactory('like') 71 getAccountVideoRateFactory('like')
71) 72)
72activityPubClientRouter.get('/accounts?/:name/dislikes/:videoId', 73activityPubClientRouter.get('/accounts?/:name/dislikes/:videoId',
73 executeIfActivityPub, 74 executeIfActivityPub,
75 cacheRoute(ROUTE_CACHE_LIFETIME.ACTIVITY_PUB.VIDEOS),
74 asyncMiddleware(getAccountVideoRateValidatorFactory('dislike')), 76 asyncMiddleware(getAccountVideoRateValidatorFactory('dislike')),
75 getAccountVideoRateFactory('dislike') 77 getAccountVideoRateFactory('dislike')
76) 78)
diff --git a/server/controllers/api/search/search-videos.ts b/server/controllers/api/search/search-videos.ts
index 68428d766..1d7a7b7bc 100644
--- a/server/controllers/api/search/search-videos.ts
+++ b/server/controllers/api/search/search-videos.ts
@@ -134,8 +134,7 @@ async function searchVideoURI (url: string, res: express.Response) {
134 if (isUserAbleToSearchRemoteURI(res)) { 134 if (isUserAbleToSearchRemoteURI(res)) {
135 try { 135 try {
136 const syncParam = { 136 const syncParam = {
137 likes: false, 137 rates: false,
138 dislikes: false,
139 shares: false, 138 shares: false,
140 comments: false, 139 comments: false,
141 thumbnail: true, 140 thumbnail: true,