diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-15 14:15:44 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-15 14:15:44 +0200 |
commit | 652c64165b3d8d1c5d5fc646c29e5cd1c82a3330 (patch) | |
tree | 03958b1ca6ace8781e23c8b0210a42ae00828bf2 /server/lib | |
parent | ba6e9e8f1df29a7f355636d48c2a608bc4cb54ec (diff) | |
download | PeerTube-652c64165b3d8d1c5d5fc646c29e5cd1c82a3330.tar.gz PeerTube-652c64165b3d8d1c5d5fc646c29e5cd1c82a3330.tar.zst PeerTube-652c64165b3d8d1c5d5fc646c29e5cd1c82a3330.zip |
Fix import captions test
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/activitypub/actor.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/actor.ts b/server/lib/activitypub/actor.ts index c3598b75b..8132ac135 100644 --- a/server/lib/activitypub/actor.ts +++ b/server/lib/activitypub/actor.ts | |||
@@ -117,7 +117,7 @@ async function getOrCreateActorAndServerAndModel ( | |||
117 | if (actor.VideoChannel) (actor as MActorAccountChannelIdActor).VideoChannel.Actor = actor | 117 | if (actor.VideoChannel) (actor as MActorAccountChannelIdActor).VideoChannel.Actor = actor |
118 | 118 | ||
119 | const { actor: actorRefreshed, refreshed } = await retryTransactionWrapper(refreshActorIfNeeded, actor, fetchType) | 119 | const { actor: actorRefreshed, refreshed } = await retryTransactionWrapper(refreshActorIfNeeded, actor, fetchType) |
120 | if (!actorRefreshed) throw new Error('Actor ' + actorRefreshed.url + ' does not exist anymore.') | 120 | if (!actorRefreshed) throw new Error('Actor ' + actor.url + ' does not exist anymore.') |
121 | 121 | ||
122 | if ((created === true || refreshed === true) && updateCollections === true) { | 122 | if ((created === true || refreshed === true) && updateCollections === true) { |
123 | const payload = { uri: actor.outboxUrl, type: 'activity' as 'activity' } | 123 | const payload = { uri: actor.outboxUrl, type: 'activity' as 'activity' } |