]> 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 1fb766fcce78af5023d6e42af316693ddb603142..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;
        }
@@ -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);