]> git.wh0rd.org - tt-rss.git/commitdiff
generate_syndicated_feed: pass article id to sanitize()
authorAndrew Dolgov <noreply@fakecake.org>
Thu, 11 Feb 2016 17:11:01 +0000 (20:11 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Thu, 11 Feb 2016 17:12:01 +0000 (20:12 +0300)
classes/handler/public.php

index 632cece81c9ab10bcf59a00a4f5ecf52f84e0f9e..1cc5686220ab4ee30dbfbf74975e6cf907364765 100644 (file)
@@ -141,7 +141,7 @@ class Handler_Public extends Handler {
                                $tpl->setVariable('ARTICLE_EXCERPT', $line["content_preview"], true);
 
                                $content = sanitize($line["content"], false, $owner_uid,
-                                       $feed_site_url);
+                                       $feed_site_url, false, $line["id"]);
 
                                if ($line['note']) {
                                        $content = "<div style=\"$note_style\">Article note: " . $line['note'] . "</div>" .
@@ -224,7 +224,7 @@ class Handler_Public extends Handler {
                                $article['link']        = $line['link'];
                                $article['title'] = $line['title'];
                                $article['excerpt'] = $line["content_preview"];
-                               $article['content'] = sanitize($line["content"], false, $owner_uid);
+                               $article['content'] = sanitize($line["content"], false, $owner_uid, $feed_site_url, false, $line["id"]);
                                $article['updated'] = date('c', strtotime($line["updated"]));
 
                                if ($line['note']) $article['note'] = $line['note'];