Skip to content

Commit

Permalink
unspecced
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Apr 28, 2023
1 parent 1523382 commit b39f8d4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/pds/src/app-view/api/app/bsky/unspecced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ export default function (server: Server, ctx: AppContext) {
const postsQb = feedService
.selectPostQb()
.leftJoin('post_agg', 'post_agg.uri', 'post.uri')
.where('post_agg.likeCount', '>=', 8)
.where('post_agg.likeCount', '>=', 50)
.where('post.replyRoot', 'is', null)
.whereNotExists((qb) =>
qb
.selectFrom('post_embed_external')
.selectAll()
.whereRef('post_embed_external.postUri', '=', ref('post.uri')),
)
.whereNotExists(
db
.selectFrom('mute')
Expand Down

0 comments on commit b39f8d4

Please sign in to comment.