mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Fix
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports = class MemePosterClient extends WebhookClient {
|
||||
|
||||
post(post) {
|
||||
const url = embedURL(post.title, `<https://www.reddit.com${post.permalink}>`);
|
||||
return this.send(`**r/${subreddit}** ${url}\n${post.url}`);
|
||||
return this.send(`**r/${post.subreddit}** ${url}\n${post.url}`);
|
||||
}
|
||||
|
||||
async fetchRandomPost(nsfw) {
|
||||
@@ -22,7 +22,8 @@ module.exports = class MemePosterClient extends WebhookClient {
|
||||
return {
|
||||
subreddit,
|
||||
title: post.title,
|
||||
url: post.permalink,
|
||||
url: post.url,
|
||||
permalink: post.permalink,
|
||||
type: post.post_hint,
|
||||
nsfw: post.over_18 || false
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user