diff options
author | friendica <info@friendica.com> | 2014-09-06 15:11:56 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-06 15:11:56 -0700 |
commit | 3cff9c55ba2afa374cc3cdeecfc3384b3001e527 (patch) | |
tree | c2c045b4c84ddf56cd654e1d59a91bfad54939ca /include/diaspora.php | |
parent | b6d1ff3d8f20b146a86adbee5571ffbfa4ff610e (diff) | |
download | volse-hubzilla-3cff9c55ba2afa374cc3cdeecfc3384b3001e527.tar.gz volse-hubzilla-3cff9c55ba2afa374cc3cdeecfc3384b3001e527.tar.bz2 volse-hubzilla-3cff9c55ba2afa374cc3cdeecfc3384b3001e527.zip |
support the recent (2 years ago) changes to diaspora photo embeds
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-x | include/diaspora.php | 6 |
1 files changed, 6 insertions, 0 deletions
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); |