@@ -536,8 +536,8 @@ export default {
536
536
LEFT JOIN "Sub" ON "Sub"."name" = "Item"."subName"
537
537
${ joinZapRankPersonalView ( me , models ) }
538
538
${ whereClause (
539
- // in " home" (sub undefined), we want to show pinned items (but without the pin icon)
540
- sub ? '"Item"."pinId" IS NULL' : '' ,
539
+ // in home (sub undefined), filter out global pinned items since we inject them later
540
+ sub ? '"Item"."pinId" IS NULL' : 'NOT ("Item"."pinId" IS NOT NULL AND "Item"."subName" IS NULL) ' ,
541
541
'"Item"."deletedAt" IS NULL' ,
542
542
'"Item"."parentId" IS NULL' ,
543
543
'"Item".outlawed = false' ,
@@ -565,8 +565,8 @@ export default {
565
565
${ whereClause (
566
566
subClause ( sub , 3 , 'Item' , me , showNsfw ) ,
567
567
muteClause ( me ) ,
568
- // in " home" (sub undefined), we want to show pinned items (but without the pin icon)
569
- sub ? '"Item"."pinId" IS NULL' : '' ,
568
+ // in home (sub undefined), filter out global pinned items since we inject them later
569
+ sub ? '"Item"."pinId" IS NULL' : 'NOT ("Item"."pinId" IS NOT NULL AND "Item"."subName" IS NULL) ' ,
570
570
'"Item"."deletedAt" IS NULL' ,
571
571
'"Item"."parentId" IS NULL' ,
572
572
'"Item".bio = false' ,
0 commit comments