mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
fix FrontendMiddleware
This commit is contained in:
@@ -137,7 +137,7 @@ func serveIndexHtml(c fiber.Ctx) error {
|
|||||||
collectionIDStr := strings.TrimPrefix(path, "/collection/")
|
collectionIDStr := strings.TrimPrefix(path, "/collection/")
|
||||||
collectionID, err := strconv.Atoi(collectionIDStr)
|
collectionID, err := strconv.Atoi(collectionIDStr)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
coll, err := service.GetCollectionByID(uint(collectionID))
|
coll, err := service.GetCollectionByID(uint(collectionID), 0)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
title = coll.Title
|
title = coll.Title
|
||||||
description = utils.ArticleToDescription(coll.Article, 256)
|
description = utils.ArticleToDescription(coll.Article, 256)
|
||||||
|
Reference in New Issue
Block a user