From 555601c7de8ed9acf4fd134f4faace1bda11702d Mon Sep 17 00:00:00 2001 From: k00b Date: Tue, 20 Aug 2024 21:12:39 -0500 Subject: [PATCH] no bios in random --- api/resolvers/item.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/resolvers/item.js b/api/resolvers/item.js index 109fe466..335cd8de 100644 --- a/api/resolvers/item.js +++ b/api/resolvers/item.js @@ -413,6 +413,8 @@ export default { '"Item"."deletedAt" IS NULL', '"Item"."weightedVotes" - "Item"."weightedDownVotes" > 2', '"Item"."ncomments" > 0', + '"Item"."parentId" IS NULL', + '"Item".bio = false', type === 'posts' && '"Item"."subName" IS NOT NULL', subClause(sub, 3, subClauseTable(type), me, showNsfw), typeClause(type),