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()
 | 
							defer span.End()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		args := make([]any, 0, 3)
 | 
							args := make([]any, 0, 3)
 | 
				
			||||||
		uriarg := "1 = 1"
 | 
							uriarg := "state not in ('frozen', 'permanantly-dead')"
 | 
				
			||||||
		uri := r.URL.Query().Get("uri")
 | 
							uri := r.URL.Query().Get("uri")
 | 
				
			||||||
		if uri != "" {
 | 
							if uri != "" {
 | 
				
			||||||
			feed_id := urlNS.UUID5(uri)
 | 
								feed_id := urlNS.UUID5(uri)
 | 
				
			||||||
@ -141,7 +141,7 @@ func httpServer(ctx context.Context, app *appState) error {
 | 
				
			|||||||
					nick,
 | 
										nick,
 | 
				
			||||||
					uri
 | 
										uri
 | 
				
			||||||
				FROM feeds
 | 
									FROM feeds
 | 
				
			||||||
				where state not in ('frozen', 'permanantly-dead') and `+uriarg+`
 | 
									where `+uriarg+`
 | 
				
			||||||
			) using (feed_id)`, args...).Scan(&end)
 | 
								) using (feed_id)`, args...).Scan(&end)
 | 
				
			||||||
		span.RecordError(err)
 | 
							span.RecordError(err)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -176,7 +176,7 @@ func httpServer(ctx context.Context, app *appState) error {
 | 
				
			|||||||
							nick,
 | 
												nick,
 | 
				
			||||||
							uri
 | 
												uri
 | 
				
			||||||
						FROM feeds
 | 
											FROM feeds
 | 
				
			||||||
						where state not in ('frozen', 'permanantly-dead') and `+uriarg+`
 | 
											where `+uriarg+`
 | 
				
			||||||
					) using (feed_id)
 | 
										) using (feed_id)
 | 
				
			||||||
					order by ulid asc
 | 
										order by ulid asc
 | 
				
			||||||
					limit ?
 | 
										limit ?
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user