From 2263d27df91de3a3ecf67891e42e5d6db5e50e6d Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Wed, 11 Sep 2024 05:16:53 +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,