aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/send/send-update.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-03-10 15:08:56 +0100
committerChocobozzz <me@florianbigard.com>2023-03-10 15:45:52 +0100
commit58e735dd77a4ea8fc9e8da3b54fd338bf9e3558b (patch)
treeeb2f315096e8013ec684438130639f6251110f5f /server/lib/activitypub/send/send-update.ts
parent3b504f6ed4e890bebb46d0481aba15b43050323a (diff)
downloadPeerTube-58e735dd77a4ea8fc9e8da3b54fd338bf9e3558b.tar.gz
PeerTube-58e735dd77a4ea8fc9e8da3b54fd338bf9e3558b.tar.zst
PeerTube-58e735dd77a4ea8fc9e8da3b54fd338bf9e3558b.zip
Add test on AP hooks
Diffstat (limited to 'server/lib/activitypub/send/send-update.ts')
-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