diff options
author | git-marijus <mario@mariovavti.com> | 2017-07-16 15:59:19 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2017-07-16 15:59:58 +0200 |
commit | e6315d252ad1cee23dbca9d6f9970bf77e553215 (patch) | |
tree | e8c412ead47fc63a166a4694127ba4a423ae73df /include/photos.php | |
parent | 46e079beea8eb4cbcdd938681c702ef7481a3337 (diff) | |
download | volse-hubzilla-e6315d252ad1cee23dbca9d6f9970bf77e553215.tar.gz volse-hubzilla-e6315d252ad1cee23dbca9d6f9970bf77e553215.tar.bz2 volse-hubzilla-e6315d252ad1cee23dbca9d6f9970bf77e553215.zip |
fix album link
Diffstat (limited to 'include/photos.php')
-rw-r--r-- | include/photos.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/photos.php b/include/photos.php index 8a7e49df6..1abfc1f6e 100644 --- a/include/photos.php +++ b/include/photos.php @@ -300,7 +300,7 @@ function photo_upload($channel, $observer, $args) { $photo_link = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo_hash . ']' . t('a new photo') . '[/zrl]'; - $album_link = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/album/' . bin2hex($album) . ']' . ((strlen($album)) ? $album : '/') . '[/zrl]'; + $album_link = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/album/' . $args['directory']['hash'] . ']' . ((strlen($album)) ? $album : '/') . '[/zrl]'; $activity_format = sprintf(t('%1$s posted %2$s to %3$s','photo_upload'), $author_link, $photo_link, $album_link); |