Compare commits

..

No commits in common. "18173efd42c81d4af75edcbc53d869b306f6333e" and "8bf6ffbf319aa70d1dcd005912f49113637faa08" have entirely different histories.

1 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ export const handleInboxPost = async (req: Request, res: Response) => {
return;
}
await sendAccept(actor, activity.id, follower.id, follower.inbox);
await sendAccept(actor, follower.id, follower.inbox);
await addFollower(actor.id, follower.id, follower.preferredUsername, follower.name, follower.inbox, follower.endpoints?.sharedInbox);
@ -188,7 +188,7 @@ export const createArticleObject = (article: Article, nickname: string) => {
return obj;
};
export const sendAccept = async (user: User, followId: string, follower: string, inbox: string) => {
export const sendAccept = async (user: User, follower: string, inbox: string) => {
const actor = fillRoute("actor", user.nickname);
const activity = {
@ -197,7 +197,7 @@ export const sendAccept = async (user: User, followId: string, follower: string,
type: "Accept",
actor,
to: [follower],
object: followId
object: follower
};
const payload = JSON.stringify(activity, null, 4);