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:
parent
010c934d60
commit
2e030e2c4b
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user