diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-21 09:41:05 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-21 09:51:24 +0200 |
commit | 1cfa8d6809d941c703e12ef30a5161d1901b1874 (patch) | |
tree | 6b8a6f425cdafecdcbddb03c86263edd3c341bb9 /server/lib/activitypub | |
parent | f2659ae0b0bae6c1b2ee4dcf331a42e440274c02 (diff) | |
download | PeerTube-1cfa8d6809d941c703e12ef30a5161d1901b1874.tar.gz PeerTube-1cfa8d6809d941c703e12ef30a5161d1901b1874.tar.zst PeerTube-1cfa8d6809d941c703e12ef30a5161d1901b1874.zip |
Remove unnecessary actor existance check
We already checked it in the signature checker
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r-- | server/lib/activitypub/process/process-create.ts | 3 |
1 files changed, 0 insertions, 3 deletions
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) | |||
90 | } | 90 | } |
91 | const { video } = await getOrCreateVideoAndAccountAndChannel(options) | 91 | const { video } = await getOrCreateVideoAndAccountAndChannel(options) |
92 | 92 | ||
93 | const actorExists = await ActorModel.isActorUrlExist(view.actor) | ||
94 | if (actorExists === false) throw new Error('Unknown actor ' + view.actor) | ||
95 | |||
96 | await Redis.Instance.addVideoView(video.id) | 93 | await Redis.Instance.addVideoView(video.id) |
97 | 94 | ||
98 | if (video.isOwned()) { | 95 | if (video.isOwned()) { |