From 88776337e43c546b5bb139232bc8f7d7bbeaff1a Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Tue, 14 Jan 2025 22:20:46 +0100 Subject: [PATCH] Bug fix --- cmd/frontend/articles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/frontend/articles.go b/cmd/frontend/articles.go index 8f6edd8..e313b79 100644 --- a/cmd/frontend/articles.go +++ b/cmd/frontend/articles.go @@ -60,7 +60,7 @@ func WriteArticle(c *b.Config, db *b.DB, s map[string]*Session) http.HandlerFunc return } - data := &EditorHTMLData{Action: "submit", ArticleUsers: make(map[string]*ArticleUser)} + data := &EditorHTMLData{Action: "submit", Article: new(b.Article), ArticleUsers: make(map[string]*ArticleUser)} for _, user := range users { data.ArticleUsers[fmt.Sprint(user.LastName, user.FirstName, user.ID)] = &ArticleUser{User: user, ArticleRole: None} }