unoffical wafrn mirror
wafrn.net
atproto
social-network
activitypub
1import { Job } from "bullmq";
2import { logger } from "../logger.js";
3import { postPetitionSigned } from "../activitypub/postPetitionSigned.js";
4import { promiseRace } from "../../atproto/utils/promiseRace.js";
5
6async function sendPostToInboxes(job: Job) {
7 const inbox: string = job.data.inboxList;
8 const localUser = job.data.petitionBy;
9 const objectToSend = job.data.objectToSend;
10 //at some point we should remove the array thing but at the same time yeah
11 const tmp = await promiseRace(
12 [postPetitionSigned(objectToSend, localUser, inbox)],
13 5000
14 );
15 return true;
16}
17
18export { sendPostToInboxes };