1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-04 16:16:22 -07:00

Fix template issues with pointer/non-pointer receivers

This commit is contained in:
Eggbertx 2024-03-27 11:13:31 -07:00
parent 34e6887490
commit 8464c2447c
8 changed files with 39 additions and 40 deletions

View file

@ -81,7 +81,7 @@ func recentPostsCallback(_ http.ResponseWriter, request *http.Request, _ *gcsql.
}
}
boardidStr := request.FormValue("boardid")
var recentposts []building.Post
var recentposts []*building.Post
var boardid int
if boardidStr != "" {
if boardid, err = strconv.Atoi(boardidStr); err != nil {