aboutsummaryrefslogtreecommitdiffstats
path: root/include/enotify.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2012-02-13 09:46:42 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2012-02-13 09:46:42 +0100
commit850560519a4bbe9949368933e115f767aeb90b73 (patch)
tree6f162b4b0130a5f829d40f7ebd9d18442ad18921 /include/enotify.php
parent16d3bc9deb5cb80f438a53f1bf483c79351674af (diff)
parent85c831bcbf6f4cc2793d91e4e3fb3da5828a3f60 (diff)
downloadvolse-hubzilla-850560519a4bbe9949368933e115f767aeb90b73.tar.gz
volse-hubzilla-850560519a4bbe9949368933e115f767aeb90b73.tar.bz2
volse-hubzilla-850560519a4bbe9949368933e115f767aeb90b73.zip
Merge remote-tracking branch 'friendica/master' into mobile
Diffstat (limited to 'include/enotify.php')
-rwxr-xr-xinclude/enotify.php18
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);