add data-orig-feed-title to generated headline markup

master
Andrew Dolgov 3 years ago
parent dd30825b94
commit 377e0b812c

@ -490,6 +490,7 @@ const Headlines = {
id="RROW-${hl.id}" id="RROW-${hl.id}"
data-article-id="${hl.id}" data-article-id="${hl.id}"
data-orig-feed-id="${hl.feed_id}" data-orig-feed-id="${hl.feed_id}"
data-orig-feed-title="${App.escapeHtml(hl.feed_title)}"
data-is-packed="1" data-is-packed="1"
data-content="${App.escapeHtml(hl.content)}" data-content="${App.escapeHtml(hl.content)}"
data-rendered-enclosures="${App.escapeHtml(Article.renderEnclosures(hl.enclosures))}" data-rendered-enclosures="${App.escapeHtml(Article.renderEnclosures(hl.enclosures))}"
@ -566,6 +567,7 @@ const Headlines = {
row = `<div class="hl ${row_class} ${Article.getScoreClass(hl.score)}" row = `<div class="hl ${row_class} ${Article.getScoreClass(hl.score)}"
id="RROW-${hl.id}" id="RROW-${hl.id}"
data-orig-feed-id="${hl.feed_id}" data-orig-feed-id="${hl.feed_id}"
data-orig-feed-title="${App.escapeHtml(hl.feed_title)}"
data-article-id="${hl.id}" data-article-id="${hl.id}"
data-score="${hl.score}" data-score="${hl.score}"
data-article-title="${App.escapeHtml(hl.title)}" data-article-title="${App.escapeHtml(hl.title)}"

Loading…
Cancel
Save