add flairs to preferences

This commit is contained in:
teddit
2020-12-24 22:13:08 +01:00
parent 0ce28e6d05
commit 8a5334c9ac
8 changed files with 70 additions and 41 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ module.exports = function() {
if(api_target === 'reddit') {
return res.end(JSON.stringify(json))
} else {
let processed_json = await processJsonSubreddit(_json, from)
let processed_json = await processJsonSubreddit(_json, from, null, req.cookies)
let protocol = (config.https_enabled ? 'https' : 'http')
for(var i = 0; i < processed_json.links.length; i++) {