mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-12-13 19:55:21 +00:00
Remove unneeded sections
This commit is contained in:
17
pages/h.ts
17
pages/h.ts
@@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
|
||||
export const handleUser = async (request: Hapi.Request, h: Hapi.ResponseToolkit) => {
|
||||
// https://imgur.com/user/MomBotNumber5
|
||||
if (!CONFIG.use_api) {
|
||||
@@ -38,18 +35,4 @@ export const handleTag = async (request: Hapi.Request, h: Hapi.ResponseToolkit)
|
||||
tag: result,
|
||||
util,
|
||||
});
|
||||
};
|
||||
|
||||
export const handleGallery = async (request: Hapi.Request, h: Hapi.ResponseToolkit) => {
|
||||
const galleryID = request.params.galleryID;
|
||||
const gallery = await fetchGallery(galleryID);
|
||||
const comments = CONFIG.use_api
|
||||
? await fetchComments(galleryID)
|
||||
: null;
|
||||
return h.view('gallery', {
|
||||
...gallery,
|
||||
comments,
|
||||
pageTitle: CONFIG.page_title,
|
||||
util,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user