summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2020-05-15 20:50:04 +0900
committerGitHub <noreply@github.com>2020-05-15 20:50:04 +0900
commit2170c27b62454836c6b7e9f4e753b039c3e9c14c (patch)
treeb67c7239ce962e508a362561bd0a4b2e64a4cd2a /src/services
parentSupports Unicode 13.0 emoji (#6365) (diff)
downloadmisskey-2170c27b62454836c6b7e9f4e753b039c3e9c14c.tar.gz
misskey-2170c27b62454836c6b7e9f4e753b039c3e9c14c.tar.bz2
misskey-2170c27b62454836c6b7e9f4e753b039c3e9c14c.zip
リレーのHTTP-Signatureは投稿者の鍵でするように (#6357)
Diffstat (limited to 'src/services')
-rw-r--r--src/services/relay.ts4
1 files changed, 1 insertions, 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);
}
}