aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-09-08 14:34:32 +0200
committerChocobozzz <me@florianbigard.com>2018-09-11 10:58:48 +0200
commite78980ebd116be1ea901387c126876af902191e6 (patch)
treeea037d021e1383501e2b79add1a9581ef80a7c99 /server/helpers
parentecf06378ff95ec35f75de0169a02a974d2c17c62 (diff)
downloadPeerTube-e78980ebd116be1ea901387c126876af902191e6.tar.gz
PeerTube-e78980ebd116be1ea901387c126876af902191e6.tar.zst
PeerTube-e78980ebd116be1ea901387c126876af902191e6.zip
use focus-visible polyfill to improve keyboard navigation
Only the homepage is concerned, but it should have decent keyboard navigation support now.
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/custom-validators/videos.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/videos.ts b/server/helpers/custom-validators/videos.ts
index 4b1f6c069..edafba6e2 100644
--- a/server/helpers/custom-validators/videos.ts
+++ b/server/helpers/custom-validators/videos.ts
@@ -178,7 +178,7 @@ async function isVideoChannelOfAccountExist (channelId: number, user: UserModel,
178 const videoChannel = await VideoChannelModel.loadAndPopulateAccount(channelId) 178 const videoChannel = await VideoChannelModel.loadAndPopulateAccount(channelId)
179 if (videoChannel === null) { 179 if (videoChannel === null) {
180 res.status(400) 180 res.status(400)
181 .json({ error: 'Unknown video video channel on this instance.' }) 181 .json({ error: 'Unknown video `video channel` on this instance.' })
182 .end() 182 .end()
183 183
184 return false 184 return false
@@ -191,7 +191,7 @@ async function isVideoChannelOfAccountExist (channelId: number, user: UserModel,
191 const videoChannel = await VideoChannelModel.loadByIdAndAccount(channelId, user.Account.id) 191 const videoChannel = await VideoChannelModel.loadByIdAndAccount(channelId, user.Account.id)
192 if (videoChannel === null) { 192 if (videoChannel === null) {
193 res.status(400) 193 res.status(400)
194 .json({ error: 'Unknown video video channel for this account.' }) 194 .json({ error: 'Unknown video `video channel` for this account.' })
195 .end() 195 .end()
196 196
197 return false 197 return false