Don't filter by pins in home
This commit is contained in:
parent
b451ecaf8c
commit
3e56bbe9c0
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue