chore: fix twt filter

This commit is contained in:
xuu 2025-03-28 17:39:55 -06:00
parent b863a2786e
commit d85dd56ac9
Signed by: xuu
GPG Key ID: 8B3B0604F164E04F

View File

@ -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 ?