]> git.mxchange.org Git - friendica.git/commitdiff
Removed notice - pokes do now work mostly (#5693)
authorMichael Vogel <icarus@dabo.de>
Wed, 29 Aug 2018 13:00:01 +0000 (13:00 +0000)
committerHypolite Petovan <mrpetovan@eml.cc>
Wed, 29 Aug 2018 13:00:01 +0000 (09:00 -0400)
include/conversation.php
src/Protocol/DFRN.php

index f10c79d4beef332847259623d16d98978a999b1f..45e5d1caa3832ad98e04544a4ca71f2283afab3d 100644 (file)
@@ -231,8 +231,9 @@ function localize_item(&$item)
                $obj = XML::parseString($xmlhead.$item['object']);
 
                $Bname = $obj->title;
-               $Blink = "";
+               $Blink = $obj->id;
                $Bphoto = "";
+
                foreach ($obj->link as $l) {
                        $atts = $l->attributes();
                        switch ($atts['rel']) {
index 0b228b045b9d4b01574ce862feada0a82cdafd77..759f7f5f28b03c7596e7b42f607f88bfad67a1f5 100644 (file)
@@ -2252,6 +2252,11 @@ class DFRN
                        if ($Blink && link_compare($Blink, System::baseUrl() . "/profile/" . $importer["nickname"])) {
                                $author = DBA::selectFirst('contact', ['name', 'thumb', 'url'], ['id' => $item['author-id']]);
 
+                               $item['id'] = $posted_id;
+
+                               $parent = Item::selectFirst(['id'], ['uri' => $item['parent-uri'], 'uid' => $importer["importer_uid"]]);
+                               $item["parent"] = $parent['id'];
+
                                // send a notification
                                notification(
                                        [