summaryrefslogtreecommitdiff
path: root/classes/handler/public.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-08-14 17:04:14 +0300
committerAndrew Dolgov <[email protected]>2019-08-14 17:04:14 +0300
commitd4df57e1a4a54cfa5bc303eaae3716af2cab1b17 (patch)
tree7ccc58b6cf9d1b703ca287658f38976d0d8cb052 /classes/handler/public.php
parent68e2b05f657dca2a389cb9d585215c126e5da290 (diff)
Article::get_article_image() - also return stream URI if possible
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-xclasses/handler/public.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index b476805e1..06c01df57 100755
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -156,8 +156,9 @@ class Handler_Public extends Handler {
$tpl->setVariable('ARTICLE_ENCLOSURE_LENGTH', null, true);
}
- $tpl->setVariable('ARTICLE_OG_IMAGE',
- Article::get_article_image($enclosures, $line['content'], $feed_site_url), true);
+ list ($og_image, $og_stream) = Article::get_article_image($enclosures, $line['content'], $feed_site_url);
+
+ $tpl->setVariable('ARTICLE_OG_IMAGE', $og_image, true);
$tpl->addBlock('entry');
}
@@ -381,7 +382,7 @@ class Handler_Public extends Handler {
$rv .= "</head>";
- $og_image = Article::get_article_image($enclosures, $line['content'], $line["site_url"]);
+ list ($og_image, $og_stream) = Article::get_article_image($enclosures, $line['content'], $line["site_url"]);
if ($og_image) {
$rv .= "<meta property='og:image' content=\"" . htmlspecialchars($og_image) . "\"/>";