mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-04-17 21:34:44 -04:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user