Merge branch 'notification-read-api' into swn
This commit is contained in:
commit
ab73ba4d66
515 changed files with 12078 additions and 10359 deletions
|
|
@ -201,6 +201,7 @@ router.get(['/@:user', '/@:user/:sub'], async (ctx, next) => {
|
|||
sub: ctx.params.sub,
|
||||
instanceName: meta.name || 'Misskey',
|
||||
icon: meta.iconUrl,
|
||||
themeColor: meta.themeColor,
|
||||
});
|
||||
ctx.set('Cache-Control', 'public, max-age=30');
|
||||
} else {
|
||||
|
|
@ -240,6 +241,7 @@ router.get('/notes/:note', async (ctx, next) => {
|
|||
summary: getNoteSummary(_note),
|
||||
instanceName: meta.name || 'Misskey',
|
||||
icon: meta.iconUrl,
|
||||
themeColor: meta.themeColor,
|
||||
});
|
||||
|
||||
if (['public', 'home'].includes(note.visibility)) {
|
||||
|
|
@ -277,6 +279,8 @@ router.get('/@:user/pages/:page', async (ctx, next) => {
|
|||
page: _page,
|
||||
profile,
|
||||
instanceName: meta.name || 'Misskey',
|
||||
icon: meta.iconUrl,
|
||||
themeColor: meta.themeColor,
|
||||
});
|
||||
|
||||
if (['public'].includes(page.visibility)) {
|
||||
|
|
@ -306,6 +310,8 @@ router.get('/clips/:clip', async (ctx, next) => {
|
|||
clip: _clip,
|
||||
profile,
|
||||
instanceName: meta.name || 'Misskey',
|
||||
icon: meta.iconUrl,
|
||||
themeColor: meta.themeColor,
|
||||
});
|
||||
|
||||
ctx.set('Cache-Control', 'public, max-age=180');
|
||||
|
|
@ -329,6 +335,7 @@ router.get('/gallery/:post', async (ctx, next) => {
|
|||
profile,
|
||||
instanceName: meta.name || 'Misskey',
|
||||
icon: meta.iconUrl,
|
||||
themeColor: meta.themeColor,
|
||||
});
|
||||
|
||||
ctx.set('Cache-Control', 'public, max-age=180');
|
||||
|
|
@ -351,6 +358,8 @@ router.get('/channels/:channel', async (ctx, next) => {
|
|||
await ctx.render('channel', {
|
||||
channel: _channel,
|
||||
instanceName: meta.name || 'Misskey',
|
||||
icon: meta.iconUrl,
|
||||
themeColor: meta.themeColor,
|
||||
});
|
||||
|
||||
ctx.set('Cache-Control', 'public, max-age=180');
|
||||
|
|
@ -410,6 +419,7 @@ router.get('(.*)', async ctx => {
|
|||
instanceName: meta.name || 'Misskey',
|
||||
desc: meta.description,
|
||||
icon: meta.iconUrl,
|
||||
themeColor: meta.themeColor,
|
||||
});
|
||||
ctx.set('Cache-Control', 'public, max-age=300');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue