From ae502f4c6cff6034b011f95d07d7504c762f83bb Mon Sep 17 00:00:00 2001 From: localhost Date: Wed, 4 Mar 2026 07:14:26 +0100 Subject: [PATCH] fix slop cache --- src/utils/slop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/slop.ts b/src/utils/slop.ts index df2d59b..1bc9030 100644 --- a/src/utils/slop.ts +++ b/src/utils/slop.ts @@ -90,7 +90,7 @@ async function parseSlop(id: string, title: string, description: string, channel if (channelBlacklist.includes(channelId)) return true; const cachedSlop = await redis.get(`slop:${id}`) - if (cachedSlop) return Boolean(cachedSlop) + if (cachedSlop) return cachedSlop == 'true' ? true : false const { is_slop, reasoning } = await analyseSlop(id , title, description) if (reasoning != 'failed to parse') await redis.set(`slop:${id}`, is_slop.toString(), 'EX', 60 * 60 * 24 * 7)