aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-07-16 15:59:19 +0200
committergit-marijus <mario@mariovavti.com>2017-07-16 15:59:58 +0200
commite6315d252ad1cee23dbca9d6f9970bf77e553215 (patch)
treee8c412ead47fc63a166a4694127ba4a423ae73df /include/photos.php
parent46e079beea8eb4cbcdd938681c702ef7481a3337 (diff)
downloadvolse-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.php2
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);