chore: fix twt filter
This commit is contained in:
parent
b863a2786e
commit
d85dd56ac9
6
http.go
6
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 ?
|
||||
|
Loading…
x
Reference in New Issue
Block a user