summaryrefslogtreecommitdiff
path: root/plugins/af_redditimgur
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-01-27 08:52:45 +0300
committerAndrew Dolgov <[email protected]>2016-01-27 08:52:45 +0300
commit4501d5ef454cc08cc6f992dbc8d0341fe0d12b48 (patch)
tree27acd5eee128317d58eb35ca30c87030adfa32cb /plugins/af_redditimgur
parent71b75bb7faabf9e662d76a292c8260634160afee (diff)
remove reddit textnode hack since the feed is broken in a different way now
Diffstat (limited to 'plugins/af_redditimgur')
-rwxr-xr-xplugins/af_redditimgur/init.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php
index 67ee0c989..8ef83532f 100755
--- a/plugins/af_redditimgur/init.php
+++ b/plugins/af_redditimgur/init.php
@@ -248,32 +248,6 @@ class Af_RedditImgur extends Plugin {
$found = $this->inline_stuff($article, $doc, $xpath);
- // reddit decided to break its rss because of thunderbird so let's implement a temporary hack
- // see also: https://www.reddit.com/r/changelog/comments/428vdq/upcoming_reddit_change_switching_from_rss_20_to/
-
- $textnode = $xpath->query("//*[text()[contains(.,'!-- SC_OFF')]]/text()")->item(0);
-
- if ($textnode) {
-
- $badhtml = htmlspecialchars_decode($textnode->textContent);
- $textnode->textContent = "";
-
- if ($badhtml) {
- $body = $doc->getElementsByTagName("body")->item(0);
-
- $tmp = new DOMDocument;
-
- if (@$tmp->loadHTML($badhtml)) {
- $newnode = $doc->importNode($tmp->documentElement, TRUE);
-
- if ($newnode) {
- $body->insertBefore($newnode, $body->firstChild);
- $found = 1;
- }
- }
- }
- }
-
if (!defined('NO_CURL') && function_exists("curl_init") && !$found && $this->host->get($this, "enable_readability") &&
mb_strlen(strip_tags($article["content"])) <= 150) {