Permalink
Browse files

fix(friends): site_notifications have a clickable link to the new friend

When adding a friend the site notifications message didn't have a
clickable link the the new friend.

fixes #7267
  • Loading branch information...
jeabakker committed Aug 11, 2015
1 parent 2c1387f commit 55a0f9b0c2c29aca21fb47c8e8b0423140aac262
Showing with 7 additions and 1 deletion.
  1. +7 −1 engine/lib/friends.php
View
@@ -220,7 +220,13 @@ function _elgg_send_friend_notification($event, $type, $object) {
$user_one->getURL()
), $user_two->language);
return notify_user($user_two->guid, $object->guid_one, $subject, $body);
// Notification params
$params = [
'action' => 'add_friend',
'object' => $user_one,
];
return notify_user($user_two->guid, $object->guid_one, $subject, $body, $params);
}
return function(\Elgg\EventsService $events, \Elgg\HooksRegistrationService $hooks) {

0 comments on commit 55a0f9b

Please sign in to comment.