]> git.wh0rd.org - tt-rss.git/commitdiff
Revert "support comments for simplepie"
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 22 Dec 2012 09:41:13 +0000 (13:41 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 22 Dec 2012 09:41:13 +0000 (13:41 +0400)
This reverts commit d020a86c36327fd823a1eb8e61c52b6663985980.

include/rssfuncs.php

index 05f8bb3d8b30c8edff6e4337e05822b0e108dcdd..eaa975a5af04f4b4f09cc8aca6cf732c3e5cf06f 100644 (file)
                                $entry_cached_content = "";
 
                                if ($use_simplepie) {
-                                       $entry_comments = $item->get_item_tags('http://purl.org/rss/1.0/modules/slash/', 'comments');
-
-                                       if (is_array($entry_comments) && is_array($entry_comments[0])) {
-                                               $entry_comments = (int) $entry_comments[0]["data"];
-                                       }
-
+                                       $entry_comments = strip_tags($item->data["comments"]);
                                        if ($item->get_author()) {
                                                $entry_author_item = $item->get_author();
                                                $entry_author = $entry_author_item->get_name();
                                                $entry_author = db_escape_string($entry_author);
                                        }
                                } else {
-                                       $entry_comments = (int) $item["comments"];
+                                       $entry_comments = strip_tags($item["comments"]);
 
                                        $entry_author = db_escape_string(strip_tags($item['dc']['creator']));