Skip to content

Commit

Permalink
Rolling back labeled posts filter for now
Browse files Browse the repository at this point in the history
  • Loading branch information
rudyfraser committed Dec 15, 2024
1 parent 536b503 commit 5394cd2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rsky-feedgen/src/apis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ pub async fn get_blacksky_trending(
*
FROM post
WHERE post.\"indexedAt\" >= (CURRENT_TIMESTAMP - INTERVAL '2 days')::text
AND (array_length(post.labels, 1) IS NULL OR array_length(post.labels, 1) = 0)
), recent_likes AS (
SELECT
\"subjectUri\",
Expand Down Expand Up @@ -346,7 +345,6 @@ pub async fn get_all_posts(
.limit(limit.unwrap_or(30))
.select(Post::as_select())
.order((PostSchema::createdAt.desc(), PostSchema::cid.desc()))
.filter(sql::<Bool>("array_length(labels, 1) IS NULL OR array_length(labels, 1) = 0"))
.into_boxed();

if let Some(lang) = lang {
Expand Down

0 comments on commit 5394cd2

Please sign in to comment.