Skip to content

Commit

Permalink
Add more logging to replies api
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauve Signweaver committed Jul 11, 2024
1 parent 529e5fd commit 1507664
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/api/inbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ export const inboxRoutes = (cfg: APIConfig, store: Store, apsystem: ActivityPubS
const submittedActorMention = await apsystem.verifySignedRequest(request, actor)
to = await apsystem.mentionToActor(submittedActorMention)
}
const replyURL = decodeURIComponent(inReplyTo)
request.log.info({ replyURL }, 'fetching replies for post')

const collection = await apsystem.repliesCollection(actor, decodeURIComponent(inReplyTo), to)
const collection = await apsystem.repliesCollection(actor, replyURL, to)

return await reply.send(collection)
})
Expand Down

0 comments on commit 1507664

Please sign in to comment.