From 21566eec3f570bb987184484b344613bdb43ea3f Mon Sep 17 00:00:00 2001 From: mei23 Date: Tue, 12 May 2020 23:37:30 +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?= 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); } }