From b24a46f8895cc0fd41fbe56e0719efbbbd74b7ee Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 8 Jun 2015 00:18:44 +0200 Subject: [PATCH] Adding link information --- include/ostatus.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ostatus.php b/include/ostatus.php index 6fd5753f5b..a6d424f94e 100644 --- a/include/ostatus.php +++ b/include/ostatus.php @@ -128,7 +128,7 @@ function ostatus_import($xml,$importer,&$contact) { continue; } - $item["body"] = html2bbcode($xpath->query('atom:content/text()', $entry)->item(0)->nodeValue); + $item["body"] = add_page_info_to_body(html2bbcode($xpath->query('atom:content/text()', $entry)->item(0)->nodeValue)); $item["object-type"] = $xpath->query('activity:object-type/text()', $entry)->item(0)->nodeValue; $item["verb"] = $xpath->query('activity:verb/text()', $entry)->item(0)->nodeValue; @@ -281,8 +281,8 @@ function ostatus_import($xml,$importer,&$contact) { } } - if ($enclosure != "") - $item["body"] .= add_page_info($enclosure); + //if ($enclosure != "") + // $item["body"] .= add_page_info($enclosure); if (isset($item["parent-uri"])) { $r = q("SELECT `id` FROM `item` WHERE `uid` = %d AND `uri` = '%s'", -- 2.39.5