From 1cfa8d6809d941c703e12ef30a5161d1901b1874 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 21 Sep 2018 09:41:05 +0200 Subject: Remove unnecessary actor existance check We already checked it in the signature checker --- server/lib/activitypub/process/process-create.ts | 3 --- 1 file changed, 3 deletions(-) (limited to 'server/lib/activitypub') diff --git a/server/lib/activitypub/process/process-create.ts b/server/lib/activitypub/process/process-create.ts index 5197dac73..cff8dcfc6 100644 --- a/server/lib/activitypub/process/process-create.ts +++ b/server/lib/activitypub/process/process-create.ts @@ -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()) { -- cgit v1.2.3