Don't filter by pins in home

This commit is contained in:
ekzyis 2024-03-17 16:47:11 +01:00
parent b451ecaf8c
commit 3e56bbe9c0
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" LEFT JOIN "Sub" ON "Sub"."name" = "Item"."subName"
${joinZapRankPersonalView(me, models)} ${joinZapRankPersonalView(me, models)}
${whereClause( ${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"."deletedAt" IS NULL',
'"Item"."parentId" IS NULL', '"Item"."parentId" IS NULL',
'"Item".bio = false', '"Item".bio = false',