From: Chocobozzz Date: Thu, 11 Jan 2018 13:19:18 +0000 (+0100) Subject: Fix actor refresh X-Git-Tag: v0.0.1-alpha~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6fd5ca1ec5831383be299514b1df8958b0e968df;p=oweals%2Fpeertube.git Fix actor refresh --- diff --git a/server/lib/activitypub/actor.ts b/server/lib/activitypub/actor.ts index 0882ab843..1e1eab54a 100644 --- a/server/lib/activitypub/actor.ts +++ b/server/lib/activitypub/actor.ts @@ -320,6 +320,8 @@ async function refreshActorIfNeeded (actor: ActorModel) { await updateActorAvatarInstance(actor, result.avatarName, t) } + // Force update + actor.setDataValue('updatedAt', new Date()) await actor.save({ transaction: t }) if (actor.Account) {