1
0
Fork 0

Add comments federation tests

This commit is contained in:
Chocobozzz 2017-12-27 20:03:37 +01:00
parent ae45f988bb
commit d50acfab69
No known key found for this signature in database
GPG key ID: 583A612D890159BE
10 changed files with 136 additions and 57 deletions

View file

@ -51,7 +51,7 @@ const videoChannelsUpdateValidator = [
if (!await isVideoChannelExist(req.params.id, res)) return
// We need to make additional checks
if (res.locals.videoChannel.isOwned() === false) {
if (res.locals.videoChannel.Actor.isOwned() === false) {
return res.status(403)
.json({ error: 'Cannot update video channel of another server' })
.end()