aboutsummaryrefslogtreecommitdiffstats
path: root/include
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:19 +0200
commitce3be598bb2076a20ff6d99ac051ec1667230a77 (patch)
treeb1ed216db2640aa926429cf3437525ad090cea8b /include
parent16dcaaa3a8b1ff5e15c93c905f4f2be60624acd8 (diff)
downloadvolse-hubzilla-ce3be598bb2076a20ff6d99ac051ec1667230a77.tar.gz
volse-hubzilla-ce3be598bb2076a20ff6d99ac051ec1667230a77.tar.bz2
volse-hubzilla-ce3be598bb2076a20ff6d99ac051ec1667230a77.zip
fix album link
Diffstat (limited to 'include')
-rw-r--r--include/photos.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/photos.php b/include/photos.php
index c3260d18c..6ea444e2e 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -296,7 +296,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);