diff options
author | FChannel <> | 2022-05-03 22:42:24 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 493fc8e025fd613d9faf0b573d610e4a0e0c0228 (patch) | |
tree | fd7f217ca407c1aa8e584db26d0a95944c23b034 /routes/news.go | |
parent | 328c9150228156c04d1045469c7dbcd7b5f4fedf (diff) |
creating boards works
Diffstat (limited to 'routes/news.go')
-rw-r--r-- | routes/news.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/news.go b/routes/news.go index 2a8a0f9..736b664 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, _ = getPassword(ctx) + data.Board.ModCred, _ = db.GetPassword(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, _ = getPassword(ctx) + data.Board.ModCred, _ = db.GetPassword(ctx) data.Board.Actor = actor data.Board.Post.Actor = actor.Id data.Board.Restricted = actor.Restricted |