Skip to content

Commit

Permalink
actually send backfilled items:
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauve Signweaver committed Aug 21, 2024
1 parent 1b8504b commit bd2cc6f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/server/apsystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,10 @@ export default class ActivityPubSystem {
const actorURL = await this.mentionToActor(fromActor)
const actor = await this.getActor(actorURL, fromActor)

const { outbox } = actor
const { outbox, id } = actor

for await (const activity of this.iterateCollection(fromActor, outbox)) {
await this.notifyFollowers(fromActor, activity)
await this.sendTo(id as string, fromActor, activity)
}
}

Expand Down Expand Up @@ -774,6 +774,13 @@ export default class ActivityPubSystem {
const webmention = await this.actorToMention(followerURL, fromActor)

await this.store.forActor(fromActor).followers.add([webmention])

this.backfillOutbox(fromActor, webmention).catch((e) => {
this.log.error(
{ error: e, fromActor, toActor: webmention },
'Unable to backfill follower'
)
})
}

async rejectFollow (
Expand Down

0 comments on commit bd2cc6f

Please sign in to comment.