diff options
author | friendica <info@friendica.com> | 2014-01-09 15:45:17 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-09 15:45:17 -0800 |
commit | db8ebc9f375478bddc0f48d972e3acfbde80685a (patch) | |
tree | 62063483f438fbab8e399e5a5a3550f953f09d13 /include/photos.php | |
parent | ba0fdde51cbaf12d0bf9f28c6f95421e5fadc695 (diff) | |
download | volse-hubzilla-db8ebc9f375478bddc0f48d972e3acfbde80685a.tar.gz volse-hubzilla-db8ebc9f375478bddc0f48d972e3acfbde80685a.tar.bz2 volse-hubzilla-db8ebc9f375478bddc0f48d972e3acfbde80685a.zip |
some minor cleanup on plinks for some very subtle permissions issues
Diffstat (limited to 'include/photos.php')
-rw-r--r-- | include/photos.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/photos.php b/include/photos.php index e4367bf95..5c03b2cdb 100644 --- a/include/photos.php +++ b/include/photos.php @@ -216,6 +216,9 @@ function photo_upload($channel, $observer, $args) { $arr['deny_gid'] = $str_group_deny; $arr['verb'] = ACTIVITY_POST; + $arr['plink'] = z_root() . '/channel/' . $channel['channel_address'] . '/?f=&mid=' . $arr['mid']; + + $arr['body'] = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo_hash . ']' . '[zmg]' . z_root() . "/photo/{$photo_hash}-{$smallest}.".$ph->getExt() . '[/zmg]' . '[/zrl]'; @@ -407,6 +410,8 @@ function photos_create_item($channel, $creator_hash, $photo, $visible = false) { $arr['allow_gid'] = $photo['allow_gid']; $arr['deny_cid'] = $photo['deny_cid']; $arr['deny_gid'] = $photo['deny_gid']; + + $arr['plink'] = z_root() . '/channel/' . $channel['channel_address'] . '/?f=&mid=' . $arr['mid']; $arr['body'] = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo['resource_id'] . ']' . '[zmg]' . z_root() . '/photo/' . $photo['resource_id'] . '-' . $photo['scale'] . '[/zmg]' |