From 420fd595135037c9c02260f19fa8d125ec4662c5 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 9 Sep 2014 15:52:52 -0700 Subject: fix empty reshared content --- include/diaspora.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/diaspora.php') diff --git a/include/diaspora.php b/include/diaspora.php index 8da256bc5..adf4e9cb9 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -939,7 +939,7 @@ function diaspora_reshare($importer,$xml,$msg) { } logger('diaspora_reshare: source: ' . $x['body']); - $source_xml = parse_xml_string($x,false); + $source_xml = parse_xml_string($x['body'],false); if($source_xml->post->status_message) { $body = diaspora2bb($source_xml->post->status_message->raw_message); @@ -987,7 +987,7 @@ function diaspora_reshare($importer,$xml,$msg) { . "' link='" . $orig_url . "' posted='" . datetime_convert('UTC','UTC',unxmlify($sourcexml->post->status_message->created_at)) . "' message_id='" . unxmlify($source_xml->post->status_message->guid) - . "]" . $body . "[/share]"; + . "]" . $newbody . "[/share]"; $created = unxmlify($xml->created_at); -- cgit v1.2.3