aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-03-10 15:08:56 +0100
committerChocobozzz <me@florianbigard.com>2023-03-10 15:19:33 +0100
commit96d00a997b9847f6796c02dbff01bca2c99385c6 (patch)
treedb3048042f83b0b5f529bdb4723f1f99202c3a96 /server/lib
parent866b5d3f5230204d611a556260102996c1aefe10 (diff)
downloadPeerTube-96d00a997b9847f6796c02dbff01bca2c99385c6.tar.gz
PeerTube-96d00a997b9847f6796c02dbff01bca2c99385c6.tar.zst
PeerTube-96d00a997b9847f6796c02dbff01bca2c99385c6.zip
Add test on AP hooks
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/activitypub/send/send-update.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/send/send-update.ts b/server/lib/activitypub/send/send-update.ts
index 5a66294e6..379e2d9d8 100644
--- a/server/lib/activitypub/send/send-update.ts
+++ b/server/lib/activitypub/send/send-update.ts
@@ -59,7 +59,7 @@ async function sendUpdateActor (accountOrChannel: MChannelDefault | MAccountDefa
59 logger.info('Creating job to update actor %s.', byActor.url) 59 logger.info('Creating job to update actor %s.', byActor.url)
60 60
61 const url = getUpdateActivityPubUrl(byActor.url, byActor.updatedAt.toISOString()) 61 const url = getUpdateActivityPubUrl(byActor.url, byActor.updatedAt.toISOString())
62 const accountOrChannelObject = (accountOrChannel as any).toActivityPubObject() // FIXME: typescript bug? 62 const accountOrChannelObject = await (accountOrChannel as any).toActivityPubObject() // FIXME: typescript bug?
63 const audience = getAudience(byActor) 63 const audience = getAudience(byActor)
64 const updateActivity = buildUpdateActivity(url, byActor, accountOrChannelObject, audience) 64 const updateActivity = buildUpdateActivity(url, byActor, accountOrChannelObject, audience)
65 65