]> git.mxchange.org Git - friendica-addons.git/commitdiff
Merge pull request #419 from annando/bad-retriever
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 19 Aug 2017 10:17:00 +0000 (12:17 +0200)
committerGitHub <noreply@github.com>
Sat, 19 Aug 2017 10:17:00 +0000 (12:17 +0200)
Retriever is deactivated, see issue 3482

leistungsschutzrecht/leistungsschutzrecht.php
retriever/README [new file with mode: 0644]
retriever/retriever.php

index ec633b1dc65e26d4281943290eb7107490b5d687..c58c707f0275647b29f426dcbcf03f4fda670bb5 100644 (file)
@@ -71,9 +71,13 @@ function leistungsschutzrecht_fetchsites() {
        $sitelist = fetch_url($url);
        $siteurls = explode(',', $sitelist);
 
+       $whitelist = array('tagesschau.de', 'heute.de', 'wdr.de');
+
        $sites = array();
        foreach ($siteurls AS $site) {
-               $sites[$site] = $site;
+               if (!in_array($site, $whitelist)) {
+                       $sites[$site] = $site;
+               }
        }
 
        // I would prefer parsing the list from the original site, but I haven't found a list.
diff --git a/retriever/README b/retriever/README
new file mode 100644 (file)
index 0000000..b972815
--- /dev/null
@@ -0,0 +1,5 @@
+"retriever" is deactivated since it has side effects for all received posts.
+
+It was created in a time when the option 'Fetch further information for feeds' didn't exist.
+
+To activate it, please go to the list of your contacts, edit the contact and then select between the different options.
index a05e2e3fa927af9e659abac8e0ed691c37911d20..72e327b35d9efd7dceefc0d94a872002f72ca9a5 100644 (file)
@@ -4,6 +4,7 @@
  * Description: Follow the permalink of RSS/Atom feed items and replace the summary with the full content.
  * Version: 1.0
  * Author: Matthew Exon <http://mat.exon.name>
+ * Status: Unsupported
  */
 
 require_once('include/html2bbcode.php');