aboutsummaryrefslogtreecommitdiff
path: root/routes/post.go
diff options
context:
space:
mode:
authorFChannel <>2022-04-24 00:46:49 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit3db517715bef6a53225c5c3c06e8fc5fd0bf71e3 (patch)
tree9aa7fbcb12f2ec8d0e4e66cd85ace058e38dd32d /routes/post.go
parent9718d34a757b66917747c1c4acfb9b35d154625b (diff)
basic pass over view posts, post, catalog and manage page connections
Diffstat (limited to 'routes/post.go')
-rw-r--r--routes/post.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/routes/post.go b/routes/post.go
index 24dbbc3..e074f67 100644
--- a/routes/post.go
+++ b/routes/post.go
@@ -1,13 +1,13 @@
package routes
import (
- "regexp"
-
+ "fmt"
"github.com/FChannel0/FChannel-Server/config"
"github.com/FChannel0/FChannel-Server/db"
"github.com/FChannel0/FChannel-Server/util"
"github.com/FChannel0/FChannel-Server/webfinger"
"github.com/gofiber/fiber/v2"
+ "regexp"
)
func PostGet(ctx *fiber.Ctx) error {
@@ -112,6 +112,8 @@ func CatalogGet(ctx *fiber.Ctx) error {
collection, err := db.GetObjectFromDBCatalog(actor.Id)
+ fmt.Println(err)
+
// TODO: implement this in template functions
// "showArchive": func() bool {
// col, err := db.GetActorCollectionDBTypeLimit(collection.Actor.Id, "Archive", 1)
@@ -162,7 +164,7 @@ func CatalogGet(ctx *fiber.Ctx) error {
returnData.Themes = &config.Themes
returnData.ThemeCookie = getThemeCookie(ctx)
- return ctx.Render("ncatalog", fiber.Map{
+ return ctx.Render("catalog", fiber.Map{
"page": returnData,
}, "layouts/main")
}