mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
fix: add instance favicon where it's missing (#8270)
This commit is contained in:
parent
f458f4fd7d
commit
d1e2623554
@ -276,6 +276,7 @@ router.get('/@:user/pages/:page', async (ctx, next) => {
|
|||||||
page: _page,
|
page: _page,
|
||||||
profile,
|
profile,
|
||||||
instanceName: meta.name || 'Misskey',
|
instanceName: meta.name || 'Misskey',
|
||||||
|
icon: meta.iconUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (['public'].includes(page.visibility)) {
|
if (['public'].includes(page.visibility)) {
|
||||||
@ -305,6 +306,7 @@ router.get('/clips/:clip', async (ctx, next) => {
|
|||||||
clip: _clip,
|
clip: _clip,
|
||||||
profile,
|
profile,
|
||||||
instanceName: meta.name || 'Misskey',
|
instanceName: meta.name || 'Misskey',
|
||||||
|
icon: meta.iconUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
ctx.set('Cache-Control', 'public, max-age=180');
|
ctx.set('Cache-Control', 'public, max-age=180');
|
||||||
@ -350,6 +352,7 @@ router.get('/channels/:channel', async (ctx, next) => {
|
|||||||
await ctx.render('channel', {
|
await ctx.render('channel', {
|
||||||
channel: _channel,
|
channel: _channel,
|
||||||
instanceName: meta.name || 'Misskey',
|
instanceName: meta.name || 'Misskey',
|
||||||
|
icon: meta.iconUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
ctx.set('Cache-Control', 'public, max-age=180');
|
ctx.set('Cache-Control', 'public, max-age=180');
|
||||||
|
Loading…
Reference in New Issue
Block a user