don't show deleted items in main sorts
This commit is contained in:
parent
404cb0aaa7
commit
e63609a7c1
|
@ -370,6 +370,7 @@ export default {
|
||||||
${relationClause(type)}
|
${relationClause(type)}
|
||||||
${whereClause(
|
${whereClause(
|
||||||
'"Item".created_at <= $1',
|
'"Item".created_at <= $1',
|
||||||
|
'"Item"."deletedAt" IS NULL',
|
||||||
subClause(sub, 4, subClauseTable(type), me, showNsfw),
|
subClause(sub, 4, subClauseTable(type), me, showNsfw),
|
||||||
activeOrMine(me),
|
activeOrMine(me),
|
||||||
await filterClause(me, models, type),
|
await filterClause(me, models, type),
|
||||||
|
@ -449,6 +450,7 @@ export default {
|
||||||
FROM "Item"
|
FROM "Item"
|
||||||
${whereClause(
|
${whereClause(
|
||||||
'"parentId" IS NULL',
|
'"parentId" IS NULL',
|
||||||
|
'"Item"."deletedAt" IS NULL',
|
||||||
'created_at <= $1',
|
'created_at <= $1',
|
||||||
'"pinId" IS NULL',
|
'"pinId" IS NULL',
|
||||||
subClause(sub, 4),
|
subClause(sub, 4),
|
||||||
|
|
Loading…
Reference in New Issue