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,