diff --git a/http.go b/http.go index a1a48d0..336aa42 100644 --- a/http.go +++ b/http.go @@ -114,7 +114,7 @@ func httpServer(ctx context.Context, app *appState) error { defer span.End() args := make([]any, 0, 3) - uriarg := "1 = 1" + uriarg := "state not in ('frozen', 'permanantly-dead')" uri := r.URL.Query().Get("uri") if uri != "" { feed_id := urlNS.UUID5(uri) @@ -141,7 +141,7 @@ func httpServer(ctx context.Context, app *appState) error { nick, uri FROM feeds - where state not in ('frozen', 'permanantly-dead') and `+uriarg+` + where `+uriarg+` ) using (feed_id)`, args...).Scan(&end) span.RecordError(err) @@ -176,7 +176,7 @@ func httpServer(ctx context.Context, app *appState) error { nick, uri FROM feeds - where state not in ('frozen', 'permanantly-dead') and `+uriarg+` + where `+uriarg+` ) using (feed_id) order by ulid asc limit ?