don't show deleted items in main sorts

This commit is contained in:
k00b 2024-09-16 11:57:16 -05:00
parent 404cb0aaa7
commit e63609a7c1
1 changed files with 2 additions and 0 deletions

View File

@ -370,6 +370,7 @@ export default {
${relationClause(type)}
${whereClause(
'"Item".created_at <= $1',
'"Item"."deletedAt" IS NULL',
subClause(sub, 4, subClauseTable(type), me, showNsfw),
activeOrMine(me),
await filterClause(me, models, type),
@ -449,6 +450,7 @@ export default {
FROM "Item"
${whereClause(
'"parentId" IS NULL',
'"Item"."deletedAt" IS NULL',
'created_at <= $1',
'"pinId" IS NULL',
subClause(sub, 4),