Rename user-posts template to posts

This commit is contained in:
3nprob 2021-10-08 16:42:13 +09:00
parent 2678450ecf
commit de4d49c580
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ export const handleUser = async (request: Hapi.Request, h: Hapi.ResponseToolkit)
const userID = request.params.userID; const userID = request.params.userID;
const user = await fetchUserInfo(userID); const user = await fetchUserInfo(userID);
const posts = await fetchUserPosts(userID); const posts = await fetchUserPosts(userID);
return h.view('user-posts', { return h.view('posts', {
posts, posts,
user, user,
pageTitle: CONFIG.page_title, pageTitle: CONFIG.page_title,
@ -61,7 +61,7 @@ export const handleTag = async (request: Hapi.Request, h: Hapi.ResponseToolkit)
} }
const tagID = request.params.tagID; const tagID = request.params.tagID;
const result = await fetchTagPosts(tagID); const result = await fetchTagPosts(tagID);
return h.view('user-posts', { return h.view('posts', {
posts: result.items, posts: result.items,
pageTitle: CONFIG.page_title, pageTitle: CONFIG.page_title,
tag: result, tag: result,