diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-09 13:34:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-09 13:34:40 +0200 |
commit | 4ead40e7766f5964ecd9a11766ff56b95090fe1c (patch) | |
tree | f1fd6b2e1604c4025eae86fb87cf81daf609850f /server/lib/activitypub/actors/get.ts | |
parent | a6a12dae10658a1fa7120ad39702c07137143954 (diff) | |
download | PeerTube-4ead40e7766f5964ecd9a11766ff56b95090fe1c.tar.gz PeerTube-4ead40e7766f5964ecd9a11766ff56b95090fe1c.tar.zst PeerTube-4ead40e7766f5964ecd9a11766ff56b95090fe1c.zip |
Cache refresh actor promise
Diffstat (limited to 'server/lib/activitypub/actors/get.ts')
-rw-r--r-- | server/lib/activitypub/actors/get.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/actors/get.ts b/server/lib/activitypub/actors/get.ts index de93aa964..501ff74e3 100644 --- a/server/lib/activitypub/actors/get.ts +++ b/server/lib/activitypub/actors/get.ts | |||
@@ -56,7 +56,7 @@ async function getOrCreateAPActor ( | |||
56 | if (actor.Account) (actor as MActorAccountChannelIdActor).Account.Actor = actor | 56 | if (actor.Account) (actor as MActorAccountChannelIdActor).Account.Actor = actor |
57 | if (actor.VideoChannel) (actor as MActorAccountChannelIdActor).VideoChannel.Actor = actor | 57 | if (actor.VideoChannel) (actor as MActorAccountChannelIdActor).VideoChannel.Actor = actor |
58 | 58 | ||
59 | const { actor: actorRefreshed, refreshed } = await refreshActorIfNeeded(actor, fetchType) | 59 | const { actor: actorRefreshed, refreshed } = await refreshActorIfNeeded({ actor, fetchedType: fetchType }) |
60 | if (!actorRefreshed) throw new Error('Actor ' + actor.url + ' does not exist anymore.') | 60 | if (!actorRefreshed) throw new Error('Actor ' + actor.url + ' does not exist anymore.') |
61 | 61 | ||
62 | await scheduleOutboxFetchIfNeeded(actor, created, refreshed, updateCollections) | 62 | await scheduleOutboxFetchIfNeeded(actor, created, refreshed, updateCollections) |