better SEO

This commit is contained in:
les
2019-09-18 12:55:33 +02:00
parent bb968ffe90
commit d264ca4973
6 changed files with 45 additions and 31 deletions

View File

@@ -8,8 +8,6 @@ module.exports = {
// search for related event
const inReplyTo = body.object.inReplyTo
const match = inReplyTo.match('.*\/federation\/m\/(.*)')
console.error('inReplyTo', inReplyTo)
console.error('match', match)
if (!match || match.length < 2) {
debug('Comment not found %s', inReplyTo)
return res.status(404).send('Event not found!')