From 9e3173a62eda5a8432cd6bd4d6f6e7fbcd695233 Mon Sep 17 00:00:00 2001 From: teddit Date: Tue, 23 Mar 2021 19:40:26 +0100 Subject: [PATCH] fix /r/:subreddit/search redis key --- routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes.js b/routes.js index 8800a23..a180a4f 100644 --- a/routes.js +++ b/routes.js @@ -763,7 +763,7 @@ module.exports = (app, redis, fetch, RedditAPI) => { nsfw = 'off' } - let key = `search:${q}:${restrict_sr}:${sortby}:${past}:${after}:${before}:${nsfw}` + let key = `search:${subreddit}:${q}:${restrict_sr}:${sortby}:${past}:${after}:${before}:${nsfw}` redis.get(key, (error, json) => { if(error) { console.error('Error getting the search key from redis.', error)