From 4cc27badee1b92e07adc9e3a8fbed8df3650b6d0 Mon Sep 17 00:00:00 2001 From: Wolfgang Rumpler Date: Sun, 19 Aug 2018 10:47:33 +0200 Subject: [PATCH] enhance reddit linking --- randomwallpaper@iflow.space/sourceAdapter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/randomwallpaper@iflow.space/sourceAdapter.js b/randomwallpaper@iflow.space/sourceAdapter.js index 8c6de28..138326f 100644 --- a/randomwallpaper@iflow.space/sourceAdapter.js +++ b/randomwallpaper@iflow.space/sourceAdapter.js @@ -395,7 +395,8 @@ var RedditAdapter = new Lang.Class({ if (callback) { let historyEntry = new HistoryModule.HistoryEntry(null, 'reddit', imageDownloadUrl); - historyEntry.source.sourceUrl = 'https://www.reddit.com/' + submission.permalink; + historyEntry.source.sourceUrl = 'https://www.reddit.com/' + submission.subreddit_name_prefixed; + historyEntry.source.imageLinkUrl = 'https://www.reddit.com/' + submission.permalink; callback(historyEntry); } } catch (e) {