aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-06 15:11:56 -0700
committerfriendica <info@friendica.com>2014-09-06 15:11:56 -0700
commit3cff9c55ba2afa374cc3cdeecfc3384b3001e527 (patch)
treec2c045b4c84ddf56cd654e1d59a91bfad54939ca /include
parentb6d1ff3d8f20b146a86adbee5571ffbfa4ff610e (diff)
downloadvolse-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')
-rwxr-xr-xinclude/diaspora.php6
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);