Fix actor refresh
authorChocobozzz <me@florianbigard.com>
Thu, 11 Jan 2018 13:19:18 +0000 (14:19 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 11 Jan 2018 13:19:18 +0000 (14:19 +0100)
server/lib/activitypub/actor.ts

index 0882ab843e690ad4bd69077c2ce51900747ec36d..1e1eab54ae3d3b337b0bda2753630757c991f9df 100644 (file)
@@ -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) {