aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-08 18:12:49 +0200
committerChocobozzz <me@florianbigard.com>2021-06-08 18:12:49 +0200
commitbbfdeb39214fb54b36bb1ea232e469e015b19625 (patch)
tree9566f9fe66732cd190e19230517f1b6352b0b4af /server/lib/activitypub
parent754c73f32bd4c97e96a4b459e0d9f316074a2176 (diff)
downloadPeerTube-bbfdeb39214fb54b36bb1ea232e469e015b19625.tar.gz
PeerTube-bbfdeb39214fb54b36bb1ea232e469e015b19625.tar.zst
PeerTube-bbfdeb39214fb54b36bb1ea232e469e015b19625.zip
Fix actor image update
Diffstat (limited to 'server/lib/activitypub')
-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)