mirror of
https://codeberg.org/teddit/teddit
synced 2025-01-18 04:56:59 +01:00
Fix: API light mode subreddit
This commit is contained in:
parent
010c934d60
commit
2e030e2c4b
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user