]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/actor.ts
Update channel updatedAt when uploading a video
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / actor.ts
index eec951d4ea6478dc3c372156bfb98ea1f3e25ac8..5fe7381c9753784aa507c000549cfd701aea61e7 100644 (file)
@@ -165,6 +165,8 @@ async function updateActorInstance (actorInstance: ActorModel, attributes: Activ
   actorInstance.followersUrl = attributes.followers
   actorInstance.followingUrl = attributes.following
 
+  if (attributes.published) actorInstance.remoteCreatedAt = new Date(attributes.published)
+
   if (attributes.endpoints?.sharedInbox) {
     actorInstance.sharedInboxUrl = attributes.endpoints.sharedInbox
   }