aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorZach Prezkuta <fermion@gmx.com>2012-06-19 20:45:24 -0600
committerZach Prezkuta <fermion@gmx.com>2012-06-23 11:02:15 -0600
commit90f8454190612db8582f14d55029aed381a22898 (patch)
tree0e683432cc4433e2fb73411157b37d34677223b9 /include/diaspora.php
parent7a346bc7560c068e084155c98108b404eafc78b2 (diff)
downloadvolse-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-xinclude/diaspora.php3
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",