aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-27 13:25:58 -0700
committerredmatrix <git@macgirvin.com>2016-04-27 13:25:58 -0700
commit8e8df26066d806c663e3eecc7d869d611e311f81 (patch)
treeac7b98a5e6d2fdd455ea4294a9c16f91b48e580f /include/photos.php
parent26131ffc91d9fd9149466323df86a068e4df9368 (diff)
downloadvolse-hubzilla-8e8df26066d806c663e3eecc7d869d611e311f81.tar.gz
volse-hubzilla-8e8df26066d806c663e3eecc7d869d611e311f81.tar.bz2
volse-hubzilla-8e8df26066d806c663e3eecc7d869d611e311f81.zip
Use / for album name in photo activities if no album present.
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 24e872890..d088d455a 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) . ']' . $album . '[/zrl]';
+ $album_link = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/album/' . bin2hex($album) . ']' . ((strlen($album)) ? $album : '/') . '[/zrl]';
$activity_format = sprintf(t('%1$s posted %2$s to %3$s','photo_upload'), $author_link, $photo_link, $album_link);