blog: fix bug (#527)

This commit is contained in:
panda authored and GitHub committed 2023-03-04 11:15:41 +08:00
1 parent 44a579878b
commit 203195685d
3 files changed
+6 -5

No files matched your search

+2 -3
View File
@@ -212,9 +212,8 @@ export async function apply(ctx: Context) {
ctx.Route('blog_create', '/blog/:uid/create', BlogEditHandler, PRIV.PRIV_USER_PROFILE);
ctx.Route('blog_detail', '/blog/:uid/:did', BlogDetailHandler);
ctx.Route('blog_edit', '/blog/:uid/:did/edit', BlogEditHandler, PRIV.PRIV_USER_PROFILE);
ctx.inject('UserDropdown', 'blog_main', {
icon: 'book', displayName: 'Blog', args: (h) => ({ uid: h.user._id }),
}, PRIV.PRIV_USER_PROFILE);
ctx.inject('UserDropdown', 'blog_main', (h) => ({ icon: 'book', displayName: 'Blog', uid: h.user._id.toString() }),
PRIV.PRIV_USER_PROFILE);
ctx.i18n.load('zh', {
"{0}'s blog": '{0} 的博客',
Blog: '博客',