diff options
Diffstat (limited to 'server/lib/activitypub/process')
-rw-r--r-- | server/lib/activitypub/process/process-update.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/server/lib/activitypub/process/process-update.ts b/server/lib/activitypub/process/process-update.ts index ad3bb392d..6df9b93b2 100644 --- a/server/lib/activitypub/process/process-update.ts +++ b/server/lib/activitypub/process/process-update.ts | |||
@@ -134,13 +134,8 @@ async function processUpdateActor (actor: ActorModel, activity: ActivityUpdate) | |||
134 | 134 | ||
135 | await updateActorInstance(actor, actorAttributesToUpdate) | 135 | await updateActorInstance(actor, actorAttributesToUpdate) |
136 | 136 | ||
137 | for (const imageInfo of [ avatarInfo, bannerInfo ]) { | 137 | await updateActorImageInstance(actor, ActorImageType.AVATAR, avatarInfo, t) |
138 | if (!imageInfo) continue | 138 | await updateActorImageInstance(actor, ActorImageType.BANNER, bannerInfo, t) |
139 | |||
140 | const imageOptions = Object.assign({}, imageInfo, { onDisk: false }) | ||
141 | |||
142 | await updateActorImageInstance(actor, imageOptions, t) | ||
143 | } | ||
144 | 139 | ||
145 | await actor.save({ transaction: t }) | 140 | await actor.save({ transaction: t }) |
146 | 141 | ||