From 601851f3d0b5439f75c6e984733e850c7beed40c Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 29 Aug 2018 13:00:01 +0000 Subject: [PATCH] Removed notice - pokes do now work mostly (#5693) --- include/conversation.php | 3 ++- src/Protocol/DFRN.php | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/conversation.php b/include/conversation.php index f10c79d4be..45e5d1caa3 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -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']) { diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 0b228b045b..759f7f5f28 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -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( [