diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-10-27 11:07:40 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-10-27 11:07:40 +0100 |
commit | 3f1dc22c0edc87e332c436d0426f9616e6500880 (patch) | |
tree | 3fa89cc8743cdd44aa934113e3eefc7ff108955b /include | |
parent | 02527552fd6d17efdf4eb36a5e0403b2b7e19789 (diff) | |
download | volse-hubzilla-3f1dc22c0edc87e332c436d0426f9616e6500880.tar.gz volse-hubzilla-3f1dc22c0edc87e332c436d0426f9616e6500880.tar.bz2 volse-hubzilla-3f1dc22c0edc87e332c436d0426f9616e6500880.zip |
fix sharing of photo items
Diffstat (limited to 'include')
-rw-r--r-- | include/photos.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/photos.php b/include/photos.php index a8619c372..d62d5aeb8 100644 --- a/include/photos.php +++ b/include/photos.php @@ -292,18 +292,19 @@ function photo_upload($channel, $observer, $args) { $tag = (($r2) ? '[zmg=' . $width . 'x' . $height . ']' : '[zmg]'); } + $body = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo_hash . ']' + . $tag . z_root() . "/photo/{$photo_hash}-{$scale}." . $ph->getExt() . '[/zmg]' + . '[/zrl]'; + // Create item object $object = array( 'type' => ACTIVITY_OBJ_PHOTO, 'title' => $title, 'id' => rawurlencode(z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo_hash), - 'link' => $link + 'link' => $link, + 'bbcode' => $body ); - $body = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo_hash . ']' - . $tag . z_root() . "/photo/{$photo_hash}-{$scale}." . $ph->getExt() . '[/zmg]' - . '[/zrl]'; - // Create item container if($args['item']) { foreach($args['item'] as $i) { |