mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
minor on Announce response #461
This commit is contained in:
parent
c693007fc4
commit
ee12eaf410
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue