Skip to content

Commit

Permalink
catch announcement backlog errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauve Signweaver committed Jun 24, 2024
1 parent 5619d44 commit 0650b60
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/announcements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ export class Announcements {
await Promise.all(items.map(async (item) => {
const { id, type } = item
if (AUTO_APPROVED_TYPES.includes(type as string)) {
await this.apsystem.approveActivity(this.mention, id as string)
try {
await this.apsystem.approveActivity(this.mention, id as string)
} catch {
// If it fails, that's okay, we can skip it. Probs malformed.
}
}
await this.store.inbox.remove(id as string)
}))
Expand Down

0 comments on commit 0650b60

Please sign in to comment.