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)