landed "change conference information" and fixed a bug in AmGetPublishedPosts

This commit is contained in:
2026-02-02 15:58:08 -07:00
parent 17af0192f4
commit c7e43b539b
4 changed files with 96 additions and 0 deletions
+3
View File
@@ -682,6 +682,9 @@ func AmGetPublishedPosts(ctx context.Context) ([]*PostHeader, error) {
}
i++
}
if i == 0 { // no published posts, short-circuit response
return make([]*PostHeader, 0), nil
}
if i < int(gv.FrontPagePosts) {
pids = pids[:i] // truncate if we have fewer posts than spaces
}