aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/activitypub/actors/updater.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/lib/activitypub/actors/updater.ts b/server/lib/activitypub/actors/updater.ts
index fb880a767..de5e03eee 100644
--- a/server/lib/activitypub/actors/updater.ts
+++ b/server/lib/activitypub/actors/updater.ts
@@ -39,13 +39,13 @@ export class APActorUpdater {
39 if (this.accountOrChannel instanceof VideoChannelModel) this.accountOrChannel.support = this.actorObject.support 39 if (this.accountOrChannel instanceof VideoChannelModel) this.accountOrChannel.support = this.actorObject.support
40 40
41 await runInReadCommittedTransaction(async t => { 41 await runInReadCommittedTransaction(async t => {
42 await this.actor.save({ transaction: t }) 42 await updateActorImageInstance(this.actor, ActorImageType.AVATAR, avatarInfo, t)
43 await this.accountOrChannel.save({ transaction: t }) 43 await updateActorImageInstance(this.actor, ActorImageType.BANNER, bannerInfo, t)
44 }) 44 })
45 45
46 await runInReadCommittedTransaction(async t => { 46 await runInReadCommittedTransaction(async t => {
47 await updateActorImageInstance(this.actor, ActorImageType.AVATAR, avatarInfo, t) 47 await this.actor.save({ transaction: t })
48 await updateActorImageInstance(this.actor, ActorImageType.BANNER, bannerInfo, t) 48 await this.accountOrChannel.save({ transaction: t })
49 }) 49 })
50 50
51 logger.info('Remote account %s updated', this.actorObject.url) 51 logger.info('Remote account %s updated', this.actorObject.url)