]> git.mxchange.org Git - friendica.git/blobdiff - include/diaspora.php
oembed. fix html2bbcode when oembed html contains span and utf8 chars
[friendica.git] / include / diaspora.php
index abe927697bac31c70a76d572c1f4fbefc3fd4310..89707967f35381359719007bb4b6a06b0e4e526e 100644 (file)
@@ -627,6 +627,8 @@ function diaspora_reshare($importer,$xml) {
                logger('diaspora_reshare: unable to fetch source url ' . $source_url);
                return;
        }
+       logger('diaspora_reshare: source: ' . $x);
+
        $x = str_replace(array('<activity_streams-photo>','</activity_streams-photo>'),array('<asphoto>','</asphoto>'),$x);
        $source_xml = parse_xml_string($x,false);
 
@@ -671,8 +673,6 @@ function diaspora_reshare($importer,$xml) {
        $created = unxmlify($xml->created_at);
        $private = ((unxmlify($xml->public) == 'false') ? 1 : 0);
 
-       $body = diaspora2bb($xml->raw_message);
-
        $datarray = array();
 
        $str_tags = '';