added covers to user comment page

This commit is contained in:
orangix
2023-08-15 19:52:47 +02:00
parent 3faef9aeb9
commit ab95ee5e2b
4 changed files with 59 additions and 45 deletions

View File

@@ -1,6 +1,7 @@
package pages
import (
"fmt"
"strconv"
"codeberg.org/rimgo/rimgo/utils"
@@ -96,6 +97,8 @@ func HandleUserComments(c *fiber.Ctx) error {
return err
}
fmt.Println(comments[0].Post.Cover.Url) //FIXME:debug
return c.Render("userComments", fiber.Map{
"user": user,
"comments": comments,