]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Remote self worked anymore
authorMichael Vogel <icarus@dabo.de>
Sat, 3 Oct 2015 11:58:10 +0000 (13:58 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 3 Oct 2015 11:58:10 +0000 (13:58 +0200)
include/feed.php

index 18d96e6abb15c1bef9d3d2716b54b16728572192..dd360a07b58bf46df256c3143e97329435617a1f 100644 (file)
@@ -106,9 +106,17 @@ function feed_import($xml,$importer,&$contact, &$hub) {
        $header["wall"] = 0;
        $header["origin"] = 0;
        $header["gravity"] = GRAVITY_PARENT;
+       $header["private"] = 2;
+       $header["verb"] = ACTIVITY_POST;
+       $header["object-type"] = ACTIVITY_OBJ_NOTE;
 
        $header["contact-id"] = $contact["id"];
 
+       if(!strlen($contact["notify"])) {
+               // one way feed - no remote comment ability
+               $header["last-child"] = 0;
+       }
+
        if (!is_object($entries))
                return;