Merge pull request #930 from stackernews/921-pinned-posts-in-hot

Don't filter by pins in home
This commit is contained in:
Keyan 2024-03-17 12:51:45 -05:00 committed by GitHub
commit 60cf7760d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -457,7 +457,8 @@ export default {
LEFT JOIN "Sub" ON "Sub"."name" = "Item"."subName"
${joinZapRankPersonalView(me, models)}
${whereClause(
'"Item"."pinId" IS NULL',
// in "home" (sub undefined), we want to show pinned items (but without the pin icon)
sub ? '"Item"."pinId" IS NULL' : '',
'"Item"."deletedAt" IS NULL',
'"Item"."parentId" IS NULL',
'"Item".bio = false',