From 90ac18a3e36120fdd57b6ccb76eb9309dde3319c Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Sun, 22 Apr 2018 17:10:08 +0200 Subject: [PATCH] Prefer i.redd.it ID over post ID for reddit image host. --- methods/reddit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/methods/reddit.js b/methods/reddit.js index 80e4ddb..24114f4 100644 --- a/methods/reddit.js +++ b/methods/reddit.js @@ -8,7 +8,7 @@ function reddit(post) { return Promise.resolve({ album: null, items: [{ - id: post.id, + id: post.host.id || post.id, url: post.url, title: post.title, datetime: post.datetime,