X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Factivitypub%2Fsend%2Fsend-follow.ts;h=8fba1b6b57661ca765714091bc2055f36512d19a;hb=25ed141c7c7631ef21d8764c1163fbf8a6591391;hp=3c01fb77c378cc71462c277b7fa0091c45444b7f;hpb=892211e8493b1f992fce7616cb1e48b7ff87a1dc;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/activitypub/send/send-follow.ts b/server/lib/activitypub/send/send-follow.ts index 3c01fb77c..8fba1b6b5 100644 --- a/server/lib/activitypub/send/send-follow.ts +++ b/server/lib/activitypub/send/send-follow.ts @@ -5,17 +5,17 @@ import { AccountFollowInstance } from '../../../models/account/account-follow-in import { getAccountFollowActivityPubUrl } from '../url' import { unicastTo } from './misc' -async function sendFollow (accountFollow: AccountFollowInstance, t: Transaction) { +function sendFollow (accountFollow: AccountFollowInstance, t: Transaction) { const me = accountFollow.AccountFollower const following = accountFollow.AccountFollowing const url = getAccountFollowActivityPubUrl(accountFollow) - const data = await followActivityData(url, me, following) + const data = followActivityData(url, me, following) return unicastTo(data, me, following.inboxUrl, t) } -async function followActivityData (url: string, byAccount: AccountInstance, targetAccount: AccountInstance) { +function followActivityData (url: string, byAccount: AccountInstance, targetAccount: AccountInstance) { const activity: ActivityFollow = { type: 'Follow', id: url,