From 3cff9c55ba2afa374cc3cdeecfc3384b3001e527 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 6 Sep 2014 15:11:56 -0700 Subject: support the recent (2 years ago) changes to diaspora photo embeds --- include/diaspora.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/diaspora.php') diff --git a/include/diaspora.php b/include/diaspora.php index 0b598ffb2..3053f7274 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -805,6 +805,12 @@ function diaspora_post($importer,$xml,$msg) { $body = diaspora2bb($xml->raw_message); + if($xml->photo) { + $body = '[img]' . $xml->photo->remote_photo_path . $xml->photo->remote_photo_name . '[/img]' . "\n\n" . $body; + $body = scale_external_images($body); + } + + //WTF? FIXME // Add OEmbed and other information to the body // $body = add_page_info_to_body($body, false, true); -- cgit v1.2.3