Skip to content

Commit

Permalink
Actually fix the iframely patches
Browse files Browse the repository at this point in the history
  • Loading branch information
boomzillawtf committed Jul 8, 2020
1 parent 32b0e7f commit 507e6af
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions iframely-date.diff
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
diff --git a/library.js b/library.js
index 3313930..0110434 100644
index 8ba5b21..20029e1 100644
--- a/library.js
+++ b/library.js
@@ -174,7 +174,8 @@ iframely.replace = function(raw, options, callback) {
title: embed.meta.title || url,
embed: embed,
icon: icon,
title: embed.meta.title || url,
embed: embed,
icon: icon,
- url: url
+ url: url,
+ date: validator.escape(embed.meta.date || '')
}, function (err, parsed) {

if (err) {
@@ -234,7 +235,8 @@ iframely.replace = function(raw, options, callback) {
if (err) {
winston.error('[plugin/iframely] Could not parse embed: ' + err.message + '. Url: ' + url);
@@ -233,6 +234,7 @@ iframely.replace = function(raw, options, callback) {
favicon: wrapImage(icon),
embed: embed,
url: url,
+ date: validator.escape(embed.meta.date || ''),
metaString: metaInfo.length ? metaInfo.join('  /  ') : false,
embedHtml: embedHtml,
embedIsImg: /^<img[^>]+>$/.test(embedHtml),
diff --git a/static/templates/partials/iframely-link-title.tpl b/static/templates/partials/iframely-link-title.tpl
diff --git a/public/templates/partials/iframely-link-title.tpl b/public/templates/partials/iframely-link-title.tpl
index ee16400..95b9d74 100644
--- a/static/templates/partials/iframely-link-title.tpl
+++ b/static/templates/partials/iframely-link-title.tpl
--- a/public/templates/partials/iframely-link-title.tpl
+++ b/public/templates/partials/iframely-link-title.tpl
@@ -1,6 +1,6 @@
<div class="iframely-link">
<div>
Expand All @@ -32,10 +32,10 @@ index ee16400..95b9d74 100644

<!-- IF icon -->
<img src="{icon}" class="thumb pull-left not-responsive" />
diff --git a/static/templates/partials/iframely-widget-card.tpl b/static/templates/partials/iframely-widget-card.tpl
diff --git a/public/templates/partials/iframely-widget-card.tpl b/public/templates/partials/iframely-widget-card.tpl
index b135b72..a065a32 100644
--- a/static/templates/partials/iframely-widget-card.tpl
+++ b/static/templates/partials/iframely-widget-card.tpl
--- a/public/templates/partials/iframely-widget-card.tpl
+++ b/public/templates/partials/iframely-widget-card.tpl
@@ -10,7 +10,7 @@

<!-- IF title -->
Expand Down

0 comments on commit 507e6af

Please sign in to comment.