mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
better handling #478
This commit is contained in:
parent
fed37c04da
commit
f1eb392a24
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ const get = require('lodash/get')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
get (req, res) {
|
get (req, res) {
|
||||||
if (req.accepts(['html','json']) === 'html') {
|
if (req.accepts(['json','html']) !== 'json') {
|
||||||
log.debug('[FEDI] Get actor but prefer text/html, redirect to homepage')
|
log.debug('[FEDI] Get actor but prefer text/html, redirect to homepage')
|
||||||
return res.redirect(301, '/')
|
return res.redirect(301, '/')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue