aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-13 17:33:59 +0100
committerChocobozzz <me@florianbigard.com>2021-12-13 17:33:59 +0100
commitab18fadfd1104ff2fab1b7e90915426a0c707b7f (patch)
tree2781b93a6dbd54b7acda8276699eeab14447656d /server/lib
parent97f026c7f02d145eb22f7bf67c13ca52385fd0e1 (diff)
downloadPeerTube-ab18fadfd1104ff2fab1b7e90915426a0c707b7f.tar.gz
PeerTube-ab18fadfd1104ff2fab1b7e90915426a0c707b7f.tar.zst
PeerTube-ab18fadfd1104ff2fab1b7e90915426a0c707b7f.zip
Fix AP audience
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/activitypub/send/send-create.ts2
-rw-r--r--server/lib/activitypub/send/send-update.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/send/send-create.ts b/server/lib/activitypub/send/send-create.ts
index f46317163..baded642a 100644
--- a/server/lib/activitypub/send/send-create.ts
+++ b/server/lib/activitypub/send/send-create.ts
@@ -116,7 +116,7 @@ function buildCreateActivity (url: string, byActor: MActorLight, object: any, au
116 type: 'Create' as 'Create', 116 type: 'Create' as 'Create',
117 id: url + '/activity', 117 id: url + '/activity',
118 actor: byActor.url, 118 actor: byActor.url,
119 object 119 object: audiencify(object, audience)
120 }, 120 },
121 audience 121 audience
122 ) 122 )
diff --git a/server/lib/activitypub/send/send-update.ts b/server/lib/activitypub/send/send-update.ts
index 3c65e19ed..bcf6e1569 100644
--- a/server/lib/activitypub/send/send-update.ts
+++ b/server/lib/activitypub/send/send-update.ts
@@ -134,7 +134,7 @@ function buildUpdateActivity (url: string, byActor: MActorLight, object: any, au
134 type: 'Update' as 'Update', 134 type: 'Update' as 'Update',
135 id: url, 135 id: url,
136 actor: byActor.url, 136 actor: byActor.url,
137 object 137 object: audiencify(object, audience)
138 }, 138 },
139 audience 139 audience
140 ) 140 )