diff options
Diffstat (limited to 'plugins/GNUsocialPhotos/classes/gnusocialphoto.php')
-rw-r--r-- | plugins/GNUsocialPhotos/classes/gnusocialphoto.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/GNUsocialPhotos/classes/gnusocialphoto.php b/plugins/GNUsocialPhotos/classes/gnusocialphoto.php index 96288731e..c724db1f1 100644 --- a/plugins/GNUsocialPhotos/classes/gnusocialphoto.php +++ b/plugins/GNUsocialPhotos/classes/gnusocialphoto.php @@ -86,7 +86,9 @@ class GNUsocialPhoto extends Memcached_DataObject $photo->path = $path; $photo->owner_id = $profile_id; - $notice = Notice::saveNew($profile_id, 'http://' . common_config('site', 'server') . $path, $source); + $rend = sprintf('<a href="http://%s%s"><img src="http://%s%s" /></a>', common_config('site', 'server'), $path, common_config('site', 'server'), $thumb_path); + + $notice = Notice::saveNew($profile_id, 'http://' . common_config('site', 'server') . $path, $source, array('rendered' => $rend)); $photo->notice_id = $notice->id; $photo_id = $photo->insert(); if (!$photo_id) { |