diff options
Diffstat (limited to 'server/lib/activitypub/process/process-create.ts')
-rw-r--r-- | server/lib/activitypub/process/process-create.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/process/process-create.ts b/server/lib/activitypub/process/process-create.ts index 08d61996a..442cd5c0b 100644 --- a/server/lib/activitypub/process/process-create.ts +++ b/server/lib/activitypub/process/process-create.ts | |||
@@ -147,8 +147,8 @@ async function processCreateView (byActor: ActorModel, activity: ActivityCreate) | |||
147 | 147 | ||
148 | const { video } = await getOrCreateAccountAndVideoAndChannel(view.object) | 148 | const { video } = await getOrCreateAccountAndVideoAndChannel(view.object) |
149 | 149 | ||
150 | const account = await ActorModel.loadByUrl(view.actor) | 150 | const actor = await ActorModel.loadByUrl(view.actor) |
151 | if (!account) throw new Error('Unknown account ' + view.actor) | 151 | if (!actor) throw new Error('Unknown actor ' + view.actor) |
152 | 152 | ||
153 | await video.increment('views') | 153 | await video.increment('views') |
154 | 154 | ||