ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix actor image update
Chocobozzzbbfdeb39214f
diff --git a/server/lib/activitypub/actors/updater.ts b/server/lib/activitypub/actors/updater.tsindex fb880a7679..de5e03eee2 100644--- a/server/lib/activitypub/actors/updater.ts+++ b/server/lib/activitypub/actors/updater.ts@@ -39,13 +39,13 @@ export class APActorUpdater {if (this.accountOrChannel instanceof VideoChannelModel) this.accountOrChannel.support = this.actorObject.supportawait runInReadCommittedTransaction(async t => {- await this.actor.save({ transaction: t })- await this.accountOrChannel.save({ transaction: t })+ await updateActorImageInstance(this.actor, ActorImageType.AVATAR, avatarInfo, t)+ await updateActorImageInstance(this.actor, ActorImageType.BANNER, bannerInfo, t)})await runInReadCommittedTransaction(async t => {- await updateActorImageInstance(this.actor, ActorImageType.AVATAR, avatarInfo, t)- await updateActorImageInstance(this.actor, ActorImageType.BANNER, bannerInfo, t)+ await this.actor.save({ transaction: t })+ await this.accountOrChannel.save({ transaction: t })})logger.info('Remote account %s updated', this.actorObject.url)