aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-27 13:40:30 +0200
committerChocobozzz <me@florianbigard.com>2018-03-27 13:40:30 +0200
commitfc27b17c6b4ddaef2db8e7086d3f74c081026bd9 (patch)
tree7e1eb9b28a1261cc79049b64d3c9481659e72897 /server/models/video
parent07197db4c567f22bbc9c12339062896dc76bac2f (diff)
downloadPeerTube-fc27b17c6b4ddaef2db8e7086d3f74c081026bd9.tar.gz
PeerTube-fc27b17c6b4ddaef2db8e7086d3f74c081026bd9.tar.zst
PeerTube-fc27b17c6b4ddaef2db8e7086d3f74c081026bd9.zip
Put Person first in AP attributedTo
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 13bf0b6a2..0d56f6ae9 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1114,12 +1114,12 @@ export class VideoModel extends Model<VideoModel> {
1114 comments: commentsObject, 1114 comments: commentsObject,
1115 attributedTo: [ 1115 attributedTo: [
1116 { 1116 {
1117 type: 'Group',
1118 id: this.VideoChannel.Actor.url
1119 },
1120 {
1121 type: 'Person', 1117 type: 'Person',
1122 id: this.VideoChannel.Account.Actor.url 1118 id: this.VideoChannel.Account.Actor.url
1119 },
1120 {
1121 type: 'Group',
1122 id: this.VideoChannel.Actor.url
1123 } 1123 }
1124 ] 1124 ]
1125 } 1125 }