Support /t/TAG/ID paths (closes #117)

This commit is contained in:
video-prize-ranch
2023-06-29 22:23:14 +00:00
parent ea74f69c45
commit c163ae690e
2 changed files with 3 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ func HandlePost(c *fiber.Ctx) error {
post, err = ApiClient.FetchAlbum(c.Params("postID"))
case strings.HasPrefix(c.Path(), "/gallery"):
post, err = ApiClient.FetchPosts(c.Params("postID"))
case strings.HasPrefix(c.Path(), "/t"):
post, err = ApiClient.FetchPosts(c.Params("postID"))
default:
post, err = ApiClient.FetchMedia(c.Params("postID"))
}