This commit is contained in:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user