Fix import captions test

This commit is contained in:
Chocobozzz 2020-04-15 14:15:44 +02:00
parent ba6e9e8f1d
commit 652c64165b
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 47 additions and 36 deletions

View file

@ -117,7 +117,7 @@ async function getOrCreateActorAndServerAndModel (
if (actor.VideoChannel) (actor as MActorAccountChannelIdActor).VideoChannel.Actor = actor
const { actor: actorRefreshed, refreshed } = await retryTransactionWrapper(refreshActorIfNeeded, actor, fetchType)
if (!actorRefreshed) throw new Error('Actor ' + actorRefreshed.url + ' does not exist anymore.')
if (!actorRefreshed) throw new Error('Actor ' + actor.url + ' does not exist anymore.')
if ((created === true || refreshed === true) && updateCollections === true) {
const payload = { uri: actor.outboxUrl, type: 'activity' as 'activity' }