mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-22 14:59:26 +01:00
Merge branch 'main' into main
This commit is contained in:
commit
7984e0cdf4
@ -763,7 +763,7 @@ module.exports = (app, redis, fetch, RedditAPI) => {
|
|||||||
nsfw = 'off'
|
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) => {
|
redis.get(key, (error, json) => {
|
||||||
if(error) {
|
if(error) {
|
||||||
console.error('Error getting the search key from redis.', error)
|
console.error('Error getting the search key from redis.', error)
|
||||||
|
Loading…
Reference in New Issue
Block a user