added extra consoleout

This commit is contained in:
Wouter Groeneveld 2021-03-17 21:51:13 +01:00
parent 120e66553f
commit 058d6fcb38
1 changed files with 3 additions and 2 deletions

View File

@ -22,9 +22,10 @@ function route(router) {
ctx.throw(403, "access denied")
}
console.log(` OK: someone wants to send mentions from domain ${ctx.params.domain}`)
const since = ctx.request.query?.since
console.log(` OK: someone wants to send mentions from domain ${ctx.params.domain} since ${since}`)
// we do NOT await this on purpose.
webmentionSender.send(ctx.params.domain, ctx.request.query?.since)
webmentionSender.send(ctx.params.domain, since)
ctx.body = "Thanks, bro. Will send these webmentions soon, pinky swear!"
ctx.status = 202