1
All checks were successful
Deploy API / deploy (push) Successful in 52s

This commit is contained in:
2026-05-26 17:58:16 +08:00
parent e18da8c6d3
commit 90184d40c7
5 changed files with 111 additions and 7 deletions

View File

@@ -127,6 +127,9 @@ func listPostsQuery(w http.ResponseWriter, r *http.Request, searchMode bool) {
typ = "all"
}
langFilter := strings.TrimSpace(r.URL.Query().Get("language"))
if langFilter == "" {
langFilter = strings.TrimSpace(r.URL.Query().Get("lang"))
}
base := postSelectBase() + ` WHERE ` + publicPostWhere
args := []any{}