]> git.mxchange.org Git - friendica.git/blobdiff - include/feed.php
Only import new OStatus posts if they are from our followers
[friendica.git] / include / feed.php
index 317f6bee7d7259ba753cc188684255401b35a7b1..2959933703103d72f2ace8dce104c7995099bc80 100644 (file)
@@ -163,7 +163,7 @@ function feed_import($xml,$importer,&$contact, &$hub, $simulate = false) {
 
        $header["contact-id"] = $contact["id"];
 
-       if (!strlen($contact["notify"])) {
+       if(!strlen($contact["notify"])) {
                // one way feed - no remote comment ability
                $header["last-child"] = 0;
        }
@@ -280,7 +280,7 @@ function feed_import($xml,$importer,&$contact, &$hub, $simulate = false) {
                        $type = "";
                        $title = "";
 
-                       foreach ($enclosure->attributes AS $attributes) {
+                       foreach($enclosure->attributes AS $attributes) {
                                if ($attributes->name == "url") {
                                        $href = $attributes->textContent;
                                } elseif ($attributes->name == "length") {
@@ -289,9 +289,8 @@ function feed_import($xml,$importer,&$contact, &$hub, $simulate = false) {
                                        $type = $attributes->textContent;
                                }
                        }
-                       if (strlen($item["attach"])) {
+                       if(strlen($item["attach"]))
                                $item["attach"] .= ',';
-                       }
 
                        $attachments[] = array("link" => $href, "type" => $type, "length" => $length);