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:
parent
f2659ae0b0
commit
1cfa8d6809
4 changed files with 2 additions and 12 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue