From 058d6fcb38efa460d84c5437279f6f3893f8b522 Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Wed, 17 Mar 2021 21:51:13 +0100 Subject: [PATCH] added extra consoleout --- src/webmention/route.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/webmention/route.js b/src/webmention/route.js index f486b90..0f5916e 100644 --- a/src/webmention/route.js +++ b/src/webmention/route.js @@ -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