show only active items with comments on random
This commit is contained in:
parent
accf5212b2
commit
85e91ede47
|
@ -412,10 +412,12 @@ export default {
|
||||||
${whereClause(
|
${whereClause(
|
||||||
'"Item"."deletedAt" IS NULL',
|
'"Item"."deletedAt" IS NULL',
|
||||||
'"Item"."weightedVotes" - "Item"."weightedDownVotes" > 2',
|
'"Item"."weightedVotes" - "Item"."weightedDownVotes" > 2',
|
||||||
|
'"Item"."ncomments" > 0',
|
||||||
type === 'posts' && '"Item"."subName" IS NOT NULL',
|
type === 'posts' && '"Item"."subName" IS NOT NULL',
|
||||||
subClause(sub, 3, subClauseTable(type), me, showNsfw),
|
subClause(sub, 3, subClauseTable(type), me, showNsfw),
|
||||||
typeClause(type),
|
typeClause(type),
|
||||||
await filterClause(me, models, type),
|
await filterClause(me, models, type),
|
||||||
|
activeOrMine(me),
|
||||||
muteClause(me))}
|
muteClause(me))}
|
||||||
${orderByClause('random', me, models, type)}
|
${orderByClause('random', me, models, type)}
|
||||||
OFFSET $1
|
OFFSET $1
|
||||||
|
|
Loading…
Reference in New Issue