diff options
author | friendica <info@friendica.com> | 2012-02-09 14:06:17 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-02-09 14:06:17 -0800 |
commit | 171249966e68d12a4e2e485d26007de8372e8235 (patch) | |
tree | 09589325dc096809d8b18516d1b23fe28cb7c431 /include | |
parent | f73b6ed7a13235086576a65b73f2ae02b3ffa8f5 (diff) | |
download | volse-hubzilla-171249966e68d12a4e2e485d26007de8372e8235.tar.gz volse-hubzilla-171249966e68d12a4e2e485d26007de8372e8235.tar.bz2 volse-hubzilla-171249966e68d12a4e2e485d26007de8372e8235.zip |
add tag notifications to enotify
Diffstat (limited to 'include')
-rwxr-xr-x | include/enotify.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/enotify.php b/include/enotify.php index 9df9b57e5..6e7130bc8 100755 --- a/include/enotify.php +++ b/include/enotify.php @@ -54,6 +54,24 @@ function notification($params) { $itemlink = $params['link']; } + if($params['type'] == NOTIFY_TAGSELF) { + $preamble = $subject = sprintf( t('%s tagged you at %s') , $params['source_name'], $sitename); + + $sitelink = t('Please visit %s to view and/or reply to the conversation.'); + $tsitelink = sprintf( $sitelink, $siteurl ); + $hsitelink = sprintf( $sitelink, '<a href="' . $siteurl . '">' . $sitename . '</a>'); + $itemlink = $params['link']; + } + + if($params['type'] == NOTIFY_TAGSHARE) { + $preamble = $subject = sprintf( t('%s tagged your post at %s') , $params['source_name'], $sitename); + + $sitelink = t('Please visit %s to view and/or reply to the conversation.'); + $tsitelink = sprintf( $sitelink, $siteurl ); + $hsitelink = sprintf( $sitelink, '<a href="' . $siteurl . '">' . $sitename . '</a>'); + $itemlink = $params['link']; + } + if($params['type'] == NOTIFY_INTRO) { $subject = sprintf( t('Introduction received at %s'), $sitename); $preamble = sprintf( t('You\'ve received an introduction from \'%s\' at %s'), $params['source_name'], $sitename); |