]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Put Person first in AP attributedTo
authorChocobozzz <me@florianbigard.com>
Tue, 27 Mar 2018 11:40:30 +0000 (13:40 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 27 Mar 2018 11:40:30 +0000 (13:40 +0200)
server/models/video/video.ts

index 13bf0b6a2f574b3233eafe63e2be06e26c6fca07..0d56f6ae9cf60dd69fa272dc42097743a9a8cd3b 100644 (file)
@@ -1113,13 +1113,13 @@ export class VideoModel extends Model<VideoModel> {
       shares: sharesObject,
       comments: commentsObject,
       attributedTo: [
-        {
-          type: 'Group',
-          id: this.VideoChannel.Actor.url
-        },
         {
           type: 'Person',
           id: this.VideoChannel.Account.Actor.url
+        },
+        {
+          type: 'Group',
+          id: this.VideoChannel.Actor.url
         }
       ]
     }