From af542e339e5a611d2a1b5876450bee841b577640 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Thu, 5 May 2022 10:05:40 -0700 Subject: removed redis dependency --- routes/news.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/news.go') diff --git a/routes/news.go b/routes/news.go index 736b664..bd037c2 100644 --- a/routes/news.go +++ b/routes/news.go @@ -23,7 +23,7 @@ func NewsGet(ctx *fiber.Ctx) error { data.Board.Name = "" data.Key = config.Key data.Board.Domain = config.Domain - data.Board.ModCred, _ = db.GetPassword(ctx) + data.Board.ModCred, _ = db.GetPasswordFromSession(ctx) data.Board.Actor = actor data.Board.Post.Actor = actor.Id data.Board.Restricted = actor.Restricted @@ -55,7 +55,7 @@ func AllNewsGet(ctx *fiber.Ctx) error { data.Board.Name = "" data.Key = config.Key data.Board.Domain = config.Domain - data.Board.ModCred, _ = db.GetPassword(ctx) + data.Board.ModCred, _ = db.GetPasswordFromSession(ctx) data.Board.Actor = actor data.Board.Post.Actor = actor.Id data.Board.Restricted = actor.Restricted -- cgit v1.2.3