Merge pull request 'Fix: API light mode subreddit' (#279) from gawii0/teddit:main into main

Reviewed-on: https://codeberg.org/teddit/teddit/pulls/279
This commit is contained in:
teddit 2021-12-29 00:08:32 +01:00
commit 734ac6a817
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));
}
}