X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fenotify.php;h=9df9b57e5d8d2dc62b670d0e3a5db3447ea5af6a;hb=64d0616762efcff413a335f2fdde4d8219d44895;hp=0c6d666b532bcdc1fe438af385ada3bdcb33ad89;hpb=aca8c8a13a8c3a850cad26efbc1e262b99c7b8a3;p=friendica.git diff --git a/include/enotify.php b/include/enotify.php old mode 100644 new mode 100755 index 0c6d666b53..9df9b57e5d --- a/include/enotify.php +++ b/include/enotify.php @@ -37,8 +37,8 @@ function notification($params) { if($params['type'] == NOTIFY_COMMENT) { - $preamble = $subject = sprintf( t('%s commented on an item at %s'), $params['source_name'], $sitename); - + $subject = sprintf( t('%s commented on an item at %s'), $params['source_name'], $sitename); + $preamble = sprintf( t('%s commented on an item/conversation you have been following.'), $params['source_name']); $sitelink = t('Please visit %s to view and/or reply to the conversation.'); $tsitelink = sprintf( $sitelink, $siteurl ); $hsitelink = sprintf( $sitelink, '' . $sitename . ''); @@ -65,6 +65,19 @@ function notification($params) { $itemlink = $params['link']; } + if($params['type'] == NOTIFY_SUGGEST) { + $subject = sprintf( t('Friend suggestion received at %s'), $sitename); + $preamble = sprintf( t('You\'ve received a friend suggestion from \'%s\' at %s'), $params['source_name'], $sitename); + $body = t('Name:') . ' ' . $params['item']['name'] . "\n"; + $body .= t('Photo:') . ' ' . $params['item']['photo'] . "\n"; + $body .= sprintf( t('You may visit their profile at %s'),$params['item']['url']); + + $sitelink = t('Please visit %s to approve or reject the suggestion.'); + $tsitelink = sprintf( $sitelink, $siteurl ); + $hsitelink = sprintf( $sitelink, '' . $sitename . ''); + $itemlink = $params['link']; + } + if($params['type'] == NOTIFY_CONFIRM) { }