summaryrefslogtreecommitdiff
path: root/plugins/GNUsocialPhotos/actions/photoupload.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/GNUsocialPhotos/actions/photoupload.php')
-rw-r--r--plugins/GNUsocialPhotos/actions/photoupload.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/GNUsocialPhotos/actions/photoupload.php b/plugins/GNUsocialPhotos/actions/photoupload.php
index 6fdf51531..216f1768f 100644
--- a/plugins/GNUsocialPhotos/actions/photoupload.php
+++ b/plugins/GNUsocialPhotos/actions/photoupload.php
@@ -134,10 +134,10 @@ class PhotouploadAction extends Action
$filename = $cur->nickname . '-' . common_timestamp() . sha1_file($imagefile->filepath) . image_type_to_extension($imagefile->type);
move_uploaded_file($imagefile->filepath, INSTALLDIR . '/file/' . $filename);
photo_make_thumbnail($filename);
- $path = '/file/' . $filename;
- $thumb_path = '/file/thumb.' . $filename;
+ $uri = 'http://' . common_config('site', 'server') . '/file/' . $filename;
+ $thumb_uri = 'http://' . common_config('site', 'server') . '/file/thumb.' . $filename;
$profile_id = $cur->id;
- GNUsocialPhoto::saveNew($profile_id, $thumb_path, $path, 'web');
+ GNUsocialPhoto::saveNew($profile_id, $thumb_uri, $uri, 'web');
}
}