aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-03 16:40:05 -0700
committerfriendica <info@friendica.com>2012-11-03 16:40:05 -0700
commitece59b778ecbe2eefa4db4e5f6bac90a4d4ab4e2 (patch)
tree5784e71a595ff7fae5a7f0b91b2f9105e400bc7f /mod/photos.php
parentf5b1eee1779e678cd540651bfee73e7126a0c583 (diff)
downloadvolse-hubzilla-ece59b778ecbe2eefa4db4e5f6bac90a4d4ab4e2.tar.gz
volse-hubzilla-ece59b778ecbe2eefa4db4e5f6bac90a4d4ab4e2.tar.bz2
volse-hubzilla-ece59b778ecbe2eefa4db4e5f6bac90a4d4ab4e2.zip
turn off some "advanced" features by default, like archives and saved search - even though we don't yet have a screen to turn them on. That will come.
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php
index ee9691e34..c98655df3 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -618,7 +618,8 @@ function photos_post(&$a) {
$arr['tag'] = $tagged[4];
$arr['inform'] = $tagged[2];
$arr['origin'] = 1;
- $arr['body'] = '[url=' . $tagged[1] . ']' . $tagged[0] . '[/url]' . ' ' . t('was tagged in a') . ' ' . '[url=' . $a->get_baseurl() . '/photos/' . $owner_record['nickname'] . '/image/' . $p[0]['resource_id'] . ']' . t('photo') . '[/url]' . ' ' . t('by') . ' ' . '[url=' . $owner_record['url'] . ']' . $owner_record['name'] . '[/url]' ;
+ $arr['body'] = sprintf( t('%1$s was tagged in %2$s by %3$s'), '[url=' . $tagged[1] . ']' . $tagged[0] . '[/url]', '[url=' . $a->get_baseurl() . '/photos/' . $owner_record['nickname'] . '/image/' . $p[0]['resource-id'] . ']' . t('a photo') . '[/url]', '[url=' . $owner_record['url'] . ']' . $owner_record['name'] . '[/url]') ;
+
$arr['body'] .= "\n\n" . '[url=' . $a->get_baseurl() . '/photos/' . $owner_record['nickname'] . '/image/' . $p[0]['resource_id'] . ']' . '[img]' . $a->get_baseurl() . "/photo/" . $p[0]['resource_id'] . '-' . $best . '.' . $ext . '[/img][/url]' . "\n" ;
$arr['object'] = '<object><type>' . ACTIVITY_OBJ_PERSON . '</type><title>' . $tagged[0] . '</title><id>' . $tagged[1] . '/' . $tagged[0] . '</id>';