summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-12-22 13:41:13 +0400
committerAndrew Dolgov <[email protected]>2012-12-22 13:41:13 +0400
commit35cb2b8f67368be40f8f5365a3987bf9f1a5ff60 (patch)
treebb34212cf585cdb9714365ceeb5685cdc8cffb24 /include
parent74cc28f2663c06044e646020c84084a12501304c (diff)
Revert "support comments for simplepie"
This reverts commit d020a86c36327fd823a1eb8e61c52b6663985980.
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 05f8bb3d8..eaa975a5a 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -634,12 +634,7 @@
$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();
@@ -648,7 +643,7 @@
$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']));