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

Remove unnecessary actor existance check

We already checked it in the signature checker
This commit is contained in:
Chocobozzz 2018-09-21 09:41:05 +02:00
parent f2659ae0b0
commit 1cfa8d6809
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 2 additions and 12 deletions

View file

@ -90,9 +90,6 @@ async function processCreateView (byActor: ActorModel, activity: ActivityCreate)
}
const { video } = await getOrCreateVideoAndAccountAndChannel(options)
const actorExists = await ActorModel.isActorUrlExist(view.actor)
if (actorExists === false) throw new Error('Unknown actor ' + view.actor)
await Redis.Instance.addVideoView(video.id)
if (video.isOwned()) {