Commit f42d96c0 authored by les's avatar les
Browse files

use user's logo not project logo in federation

parent cd2d6d03
...@@ -4,6 +4,7 @@ const debug = require('debug')('fediverse:user') ...@@ -4,6 +4,7 @@ const debug = require('debug')('fediverse:user')
module.exports = { module.exports = {
get (req, res) { get (req, res) {
if (req.accepts('html')) { return res.redirect(301, '/') }
const name = req.params.name const name = req.params.name
if (!name) { return res.status(400).send('Bad request.') } if (!name) { return res.status(400).send('Bad request.') }
// const user = await User.findOne({ where: { username: name } }) // const user = await User.findOne({ where: { username: name } })
...@@ -36,7 +37,7 @@ module.exports = { ...@@ -36,7 +37,7 @@ module.exports = {
icon: { icon: {
type: 'Image', type: 'Image',
mediaType: 'image/png', mediaType: 'image/png',
url: config.baseurl + '/gancio.png' url: config.baseurl + '/favicon.ico'
}, },
publicKey: { publicKey: {
id: `${config.baseurl}/federation/u/${name}#main-key`, id: `${config.baseurl}/federation/u/${name}#main-key`,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment