diff options
author | Zach Prezkuta <fermion@gmx.com> | 2012-06-19 20:45:24 -0600 |
---|---|---|
committer | Zach Prezkuta <fermion@gmx.com> | 2012-06-23 11:02:15 -0600 |
commit | 90f8454190612db8582f14d55029aed381a22898 (patch) | |
tree | 0e683432cc4433e2fb73411157b37d34677223b9 /include/diaspora.php | |
parent | 7a346bc7560c068e084155c98108b404eafc78b2 (diff) | |
download | volse-hubzilla-90f8454190612db8582f14d55029aed381a22898.tar.gz volse-hubzilla-90f8454190612db8582f14d55029aed381a22898.tar.bz2 volse-hubzilla-90f8454190612db8582f14d55029aed381a22898.zip |
allow linking to Diaspora's scaled-down images
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-x | include/diaspora.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/diaspora.php b/include/diaspora.php index 80fb10404..fdb85f15f 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -1560,7 +1560,8 @@ function diaspora_photo($importer,$xml,$msg) { $link_text = '[img]' . $remote_photo_path . $remote_photo_name . '[/img]' . "\n"; - $link_text = scale_external_images($link_text); + $link_text = scale_external_images($link_text, true, + array($remote_photo_name, 'scaled_full_' . $remote_photo_name)); if(strpos($parent_item['body'],$link_text) === false) { $r = q("update item set `body` = '%s', `visible` = 1 where `id` = %d and `uid` = %d limit 1", |