aboutsummaryrefslogtreecommitdiff
path: root/routes/news.go
diff options
context:
space:
mode:
authorFChannel <>2022-05-05 10:05:40 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commitaf542e339e5a611d2a1b5876450bee841b577640 (patch)
tree987f4fce83d49605a0a81d68fcfac9b2d57cf8a7 /routes/news.go
parent493fc8e025fd613d9faf0b573d610e4a0e0c0228 (diff)
removed redis dependency
Diffstat (limited to 'routes/news.go')
-rw-r--r--routes/news.go4
1 files changed, 2 insertions, 2 deletions
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