1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Merge branch 'release/1.4.0' into develop

This commit is contained in:
Chocobozzz 2019-08-22 17:16:48 +02:00
commit 001ed2d40c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
9 changed files with 72 additions and 10 deletions

View file

@ -44,6 +44,8 @@ async function getAvatar (req: express.Request, res: express.Response) {
}
const avatar = await AvatarModel.loadByName(filename)
if (!avatar) return res.sendStatus(404)
if (avatar.onDisk === false) {
if (!avatar.fileUrl) return res.sendStatus(404)