summaryrefslogtreecommitdiff
path: root/classes/handler/public.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-15 14:10:46 +0300
committerAndrew Dolgov <[email protected]>2021-02-15 14:10:46 +0300
commit82adb01307e108e8a2b4eeb900552160d730d0b7 (patch)
tree1048a18b3ad79a546e847ca52267249b6ab3b073 /classes/handler/public.php
parent916c21fe60490c50e9ae587b0a977302b9110800 (diff)
render enclosures on the client
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-xclasses/handler/public.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index 79f3a9e6c..0613e9a28 100755
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -131,7 +131,7 @@ class Handler_Public extends Handler {
$tpl->addBlock('category');
}
- $enclosures = Article::get_article_enclosures($line["id"]);
+ $enclosures = Article::get_enclosures($line["id"]);
if (count($enclosures) > 0) {
foreach ($enclosures as $e) {
@@ -218,7 +218,7 @@ class Handler_Public extends Handler {
}
}
- $enclosures = Article::get_article_enclosures($line["id"]);
+ $enclosures = Article::get_enclosures($line["id"]);
if (count($enclosures) > 0) {
$article['enclosures'] = array();
@@ -356,9 +356,7 @@ class Handler_Public extends Handler {
$line['content'] = DiskCache::rewriteUrls($line['content']);
- $enclosures = Article::get_article_enclosures($line["id"]);
-
- header("Content-Type: text/html");
+ header("Content-Type: text/html");
$rv .= "<!DOCTYPE html>
<html><head>
@@ -392,6 +390,7 @@ class Handler_Public extends Handler {
$rv .= "</head>";
+ $enclosures = Article::get_enclosures($line["id"]);
list ($og_image, $og_stream) = Article::get_article_image($enclosures, $line['content'], $line["site_url"]);
if ($og_image) {
@@ -436,10 +435,10 @@ class Handler_Public extends Handler {
$rv .= $line["content"];
- $rv .= Article::format_article_enclosures($id,
+ /* $rv .= Article::format_article_enclosures($id,
$line["always_display_enclosures"],
$line["content"],
- $line["hide_images"]);
+ $line["hide_images"]); */
$rv .= "</div>"; # content