fix: add instance favicon where it's missing (#8270)

This commit is contained in:
Sol Fisher Romanoff 2022-02-09 06:41:52 +02:00 committed by GitHub
parent 5c5d3c1a24
commit 6ef9721dd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -276,6 +276,7 @@ router.get('/@:user/pages/:page', async (ctx, next) => {
page: _page,
profile,
instanceName: meta.name || 'Misskey',
icon: meta.iconUrl,
});
if (['public'].includes(page.visibility)) {
@ -305,6 +306,7 @@ router.get('/clips/:clip', async (ctx, next) => {
clip: _clip,
profile,
instanceName: meta.name || 'Misskey',
icon: meta.iconUrl,
});
ctx.set('Cache-Control', 'public, max-age=180');
@ -350,6 +352,7 @@ router.get('/channels/:channel', async (ctx, next) => {
await ctx.render('channel', {
channel: _channel,
instanceName: meta.name || 'Misskey',
icon: meta.iconUrl,
});
ctx.set('Cache-Control', 'public, max-age=180');