aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-09 15:52:52 -0700
committerfriendica <info@friendica.com>2014-09-09 15:52:52 -0700
commit420fd595135037c9c02260f19fa8d125ec4662c5 (patch)
treec3b843711665faf7f65add2e70fe3d28ed9ed06d /include/diaspora.php
parent409c89d629993b59eaafa8443ae9d0b5f0344c1f (diff)
downloadvolse-hubzilla-420fd595135037c9c02260f19fa8d125ec4662c5.tar.gz
volse-hubzilla-420fd595135037c9c02260f19fa8d125ec4662c5.tar.bz2
volse-hubzilla-420fd595135037c9c02260f19fa8d125ec4662c5.zip
fix empty reshared content
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-xinclude/diaspora.php4
1 files changed, 2 insertions, 2 deletions
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);