add tag notifications to enotify
This commit is contained in:
parent
f73b6ed7a1
commit
171249966e
2 changed files with 28 additions and 9 deletions
5
boot.php
5
boot.php
|
@ -9,7 +9,7 @@ require_once('include/nav.php');
|
||||||
require_once('include/cache.php');
|
require_once('include/cache.php');
|
||||||
|
|
||||||
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
||||||
define ( 'FRIENDICA_VERSION', '2.3.1246' );
|
define ( 'FRIENDICA_VERSION', '2.3.1247' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1120 );
|
define ( 'DB_UPDATE_VERSION', 1120 );
|
||||||
|
|
||||||
|
@ -132,7 +132,8 @@ define ( 'NOTIFY_COMMENT', 0x0008 );
|
||||||
define ( 'NOTIFY_MAIL', 0x0010 );
|
define ( 'NOTIFY_MAIL', 0x0010 );
|
||||||
define ( 'NOTIFY_SUGGEST', 0x0020 );
|
define ( 'NOTIFY_SUGGEST', 0x0020 );
|
||||||
define ( 'NOTIFY_PROFILE', 0x0040 );
|
define ( 'NOTIFY_PROFILE', 0x0040 );
|
||||||
|
define ( 'NOTIFY_TAGSELF', 0x0080 );
|
||||||
|
define ( 'NOTIFY_TAGSHARE', 0x0100 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* various namespaces we may need to parse
|
* various namespaces we may need to parse
|
||||||
|
|
|
@ -54,6 +54,24 @@ function notification($params) {
|
||||||
$itemlink = $params['link'];
|
$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) {
|
if($params['type'] == NOTIFY_INTRO) {
|
||||||
$subject = sprintf( t('Introduction received at %s'), $sitename);
|
$subject = sprintf( t('Introduction received at %s'), $sitename);
|
||||||
$preamble = sprintf( t('You\'ve received an introduction from \'%s\' at %s'), $params['source_name'], $sitename);
|
$preamble = sprintf( t('You\'ve received an introduction from \'%s\' at %s'), $params['source_name'], $sitename);
|
||||||
|
|
Loading…
Reference in a new issue