From 2170c27b62454836c6b7e9f4e753b039c3e9c14c Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Fri, 15 May 2020 20:50:04 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=AC=E3=83=BC=E3=81=AEHTTP-Signat?= =?UTF-8?q?ure=E3=81=AF=E6=8A=95=E7=A8=BF=E8=80=85=E3=81=AE=E9=8D=B5?= =?UTF-8?q?=E3=81=A7=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=20(#6357?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/relay.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/services/relay.ts b/src/services/relay.ts index aa3179675d..0eb3bb41a1 100644 --- a/src/services/relay.ts +++ b/src/services/relay.ts @@ -83,14 +83,12 @@ export async function deliverToRelays(user: ILocalUser, activity: any) { }); if (relays.length === 0) return; - const relayActor = await getRelayActor(); - const copy = JSON.parse(JSON.stringify(activity)); if (!copy.to) copy.to = ['https://www.w3.org/ns/activitystreams#Public']; const signed = await attachLdSignature(copy, user); for (const relay of relays) { - deliver(relayActor, signed, relay.inbox); + deliver(user, signed, relay.inbox); } }