Fix comments

This commit is contained in:
video-prize-ranch
2022-01-23 20:59:29 -05:00
parent b462c10197
commit 431828e256
4 changed files with 26 additions and 25 deletions

View File

@@ -22,7 +22,8 @@ func HandleGallery(c *fiber.Ctx) error {
}
comments := []types.Comment{}
if album.Privacy != "private" {
println(album.SharedWithCommunity)
if album.SharedWithCommunity {
comments, err = api.FetchComments(c.Params("galleryID"))
if err != nil {
return err