Fix: API light mode subreddit

This commit is contained in:
gawii0 2021-12-28 22:58:34 +01:00
parent 010c934d60
commit 2e030e2c4b
1 changed files with 4 additions and 4 deletions

View File

@ -181,12 +181,12 @@ module.exports = function () {
link.images.thumb = `${protocol}://${config.domain}${link.images.thumb}`;
}
}
if (mode === 'light') {
link.selftext_html = null;
}
}
if (mode === 'light') {
processed_json.selftext_html = null;
}
return res.end(JSON.stringify(processed_json));
}
}