minor on Announce response #461

This commit is contained in:
lesion 2024-09-18 15:04:18 +02:00
parent c693007fc4
commit ee12eaf410
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -5,8 +5,8 @@ const log = require('../log')
module.exports = { module.exports = {
async boost (req, res) { async boost (req, res) {
if (typeof req.body?.object !== 'string') { if (typeof req.body?.object !== 'string') {
log.debug('[FEDI] Igonre Boost for a whole object? %s', JSON.stringify(req.body?.object)) log.debug('[FEDI] Ignore Announce for a whole object (Announce are currently supported for internal events only): %s', JSON.stringify(req.body?.object))
return res.status(404).send('?') return res.status(404).send('Announce is supported for internal events only')
} }
const match = req.body?.object?.match(`${config.baseurl}/federation/m/(.*)`) const match = req.body?.object?.match(`${config.baseurl}/federation/m/(.*)`)
if (!match || match.length < 2) { if (!match || match.length < 2) {