aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_confirm.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-20 04:50:12 -0700
committerFriendika <info@friendika.com>2011-04-20 04:50:12 -0700
commitafe4cc8bfa01017f3dfc1f40892b78f125c596f9 (patch)
tree6807f55b790a5849d06923ab9ade6eb64166d2fa /mod/dfrn_confirm.php
parente0e3cc7a7235fe129aefb0f9b01f36f2ba8b99d4 (diff)
downloadvolse-hubzilla-afe4cc8bfa01017f3dfc1f40892b78f125c596f9.tar.gz
volse-hubzilla-afe4cc8bfa01017f3dfc1f40892b78f125c596f9.tar.bz2
volse-hubzilla-afe4cc8bfa01017f3dfc1f40892b78f125c596f9.zip
pull request #91 fabrixxm (manual merge)
Diffstat (limited to 'mod/dfrn_confirm.php')
-rw-r--r--mod/dfrn_confirm.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php
index 58473146d..7c28bf902 100644
--- a/mod/dfrn_confirm.php
+++ b/mod/dfrn_confirm.php
@@ -423,9 +423,11 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
$arr['author-avatar'] = $arr['owner-avatar'] = $self[0]['thumb'];
$arr['verb'] = ACTIVITY_FRIEND;
$arr['object-type'] = ACTIVITY_OBJ_PERSON;
- $arr['body'] = '[url=' . $self[0]['url'] . ']' . $self[0]['name'] . '[/url] ' . t('is now friends with')
- . ' [url=' . $contact['url'] . ']' . $contact['name'] . '[/url]' . "\n\n\n"
- . ' [url=' . $contact['url'] . ']' . '[img]' . $contact['thumb'] . '[/img][/url]';
+
+ $A = '[url=' . $self[0]['url'] . ']' . $self[0]['name'] . '[/url]';
+ $B = '[url=' . $contact['url'] . ']' . $contact['name'] . '[/url]';
+ $BPhoto = '[url=' . $contact['url'] . ']' . '[img]' . $contact['thumb'] . '[/img][/url]';
+ $arr['body'] = sprintf(t('%1$s is now friends with %2$s'), $A, $B)."\n\n\n".$Bphoto;
$arr['object'] = '<object><type>' . ACTIVITY_OBJ_PERSON . '</type><title>' . $contact['name'] . '</title>'
. '<id>' . $contact['url'] . '/' . $contact['name'] . '</id>';