diff options
author | friendica <info@friendica.com> | 2012-07-19 21:09:40 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-07-19 21:09:40 -0700 |
commit | bf386749047731d3a7f47fd99f7dcc4e93ed7be7 (patch) | |
tree | 49168f1e7d3ca11f0b3622ca9129904af15608bf /include/enotify.php | |
parent | 6293c5e1cf53eeb6db487c74c6e4cec8a11148d4 (diff) | |
download | volse-hubzilla-bf386749047731d3a7f47fd99f7dcc4e93ed7be7.tar.gz volse-hubzilla-bf386749047731d3a7f47fd99f7dcc4e93ed7be7.tar.bz2 volse-hubzilla-bf386749047731d3a7f47fd99f7dcc4e93ed7be7.zip |
sync
Diffstat (limited to 'include/enotify.php')
-rw-r--r-- | include/enotify.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/enotify.php b/include/enotify.php index 814bd06a4..510991476 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -147,6 +147,24 @@ function notification($params) { $itemlink = $params['link']; } + if($params['type'] == NOTIFY_POKE) { + + $subject = sprintf( t('[Friendica:Notify] %1$s poked you') , $params['source_name']); + $preamble = sprintf( t('%1$s poked you at %2$s') , $params['source_name'], $sitename); + $epreamble = sprintf( t('%1$s [url=%2$s]poked you[/url].') , + '[url=' . $params['source_link'] . ']' . $params['source_name'] . '[/url]', + $params['link']); + + $subject = str_replace('poked', t($params['activity']), $subject); + $preamble = str_replace('poked', t($params['activity']), $preamble); + $epreamble = str_replace('poked', t($params['activity']), $epreamble); + + $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) { $subject = sprintf( t('[Friendica:Notify] %s tagged your post') , $params['source_name']); $preamble = sprintf( t('%1$s tagged your post at %2$s') , $params['source_name'], $sitename); |