1
0
mirror of https://codeberg.org/teddit/teddit synced 2025-01-18 13:00:17 +01:00

Fix: API light mode subreddit

This commit is contained in:
gawii0 2021-12-28 22:58:34 +01:00
parent 010c934d60
commit 2e030e2c4b

View File

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