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