Merge branch 'main' of ssh://10.0.3.4/moon/activitypress
This commit is contained in:
commit
c5223fc816
|
@ -205,7 +205,9 @@ export const sendAccept = async (user: User, follower: string, inbox: string) =>
|
||||||
const init: RequestInit = { method: "POST", body: payload };
|
const init: RequestInit = { method: "POST", body: payload };
|
||||||
const init2 = { hash, privateKey: user.private_key, keyId: getKeyId(user.nickname) };
|
const init2 = { hash, privateKey: user.private_key, keyId: getKeyId(user.nickname) };
|
||||||
|
|
||||||
await signedFetch(inbox, init, init2);
|
const result = await signedFetch(inbox, init, init2);
|
||||||
|
console.log("response status:", result.status);
|
||||||
|
console.log("body:", result.body);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const sendAll = async (keyId: string, privateKey: string, activity: Record<string, any> | string, inboxes: string[]) => {
|
export const sendAll = async (keyId: string, privateKey: string, activity: Record<string, any> | string, inboxes: string[]) => {
|
||||||
|
|
Loading…
Reference in New Issue