aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-15 14:15:44 +0200
committerChocobozzz <me@florianbigard.com>2020-04-15 14:15:44 +0200
commit652c64165b3d8d1c5d5fc646c29e5cd1c82a3330 (patch)
tree03958b1ca6ace8781e23c8b0210a42ae00828bf2 /server/lib
parentba6e9e8f1df29a7f355636d48c2a608bc4cb54ec (diff)
downloadPeerTube-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.ts2
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' }