mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
Fix reddit
This commit is contained in:
@@ -34,6 +34,7 @@ module.exports = class SubredditCommand extends Command {
|
||||
t: 'day',
|
||||
limit: 100
|
||||
});
|
||||
if (!body.data.children.length) return null;
|
||||
const posts = body.data.children.filter(post => {
|
||||
if (!post.data) return false;
|
||||
if (!nsfw && post.data.over_18) return false;
|
||||
|
||||
Reference in New Issue
Block a user