enhance reddit linking

This commit is contained in:
Wolfgang Rumpler 2018-08-19 10:47:33 +02:00
parent 3e11305aab
commit 4cc27badee

View file

@ -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) {