From 715dfe4dfbd27571c00063f75454388256637d3c Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 22 Sep 2019 18:21:58 -0400 Subject: [PATCH] Fix new posts not federating out --- lib/activitypub/federate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/activitypub/federate.ts b/lib/activitypub/federate.ts index 9e182b3..de6f991 100644 --- a/lib/activitypub/federate.ts +++ b/lib/activitypub/federate.ts @@ -125,7 +125,7 @@ export async function signAndSend(activity: Activity, inbox: string) { } async function sendToFollowers(activity: CreateActivity) { - const followers = await getConnection().createQueryBuilder().select().from(Actor, "actor").where("actor.isFollower = :isFollower", { isFollower: true }).getMany(); + const followers = await getConnection().getRepository(Actor).find({where: {isFollower: true}}); const inboxes = followers.map(it => "https://" + new URL(it.inbox).host + "/inbox"); // convert to a Set to deduplicate inboxes (new Set(inboxes)).forEach(inbox => {