no mention notifications from mastodon (and pleroma)
This commit is contained in:
parent
6481c9dca1
commit
ea235c0c67
@ -138,7 +138,7 @@ class PConfig {
|
|||||||
$hash = hash('sha256',$family.':'.$key);
|
$hash = hash('sha256',$family.':'.$key);
|
||||||
|
|
||||||
if (self::Get($uid, 'hz_delpconfig', $hash) !== false) {
|
if (self::Get($uid, 'hz_delpconfig', $hash) !== false) {
|
||||||
if (Get($uid, 'hz_delpconfig', $hash) > $updated) {
|
if (self::Get($uid, 'hz_delpconfig', $hash) > $updated) {
|
||||||
logger('Refusing to update pconfig with outdated info (Item deleted more recently).', LOGGER_NORMAL, LOG_ERR);
|
logger('Refusing to update pconfig with outdated info (Item deleted more recently).', LOGGER_NORMAL, LOG_ERR);
|
||||||
return self::Get($uid,$family,$key);
|
return self::Get($uid,$family,$key);
|
||||||
} else {
|
} else {
|
||||||
|
@ -2664,7 +2664,7 @@ function tag_deliver($uid, $item_id) {
|
|||||||
if(preg_match_all($pluspattern,$body,$matches,PREG_SET_ORDER)) {
|
if(preg_match_all($pluspattern,$body,$matches,PREG_SET_ORDER)) {
|
||||||
foreach($matches as $match) {
|
foreach($matches as $match) {
|
||||||
$matched_forums ++;
|
$matched_forums ++;
|
||||||
if($term['url'] === $match[1] && $term['term'] === $match[2] && intval($term['ttype']) === TERM_MENTION) {
|
if($term['url'] === $match[1] && intval($term['ttype']) === TERM_MENTION) {
|
||||||
if($matched_forums <= $max_forums) {
|
if($matched_forums <= $max_forums) {
|
||||||
$plustagged = true;
|
$plustagged = true;
|
||||||
$found = true;
|
$found = true;
|
||||||
@ -2678,7 +2678,7 @@ function tag_deliver($uid, $item_id) {
|
|||||||
if(preg_match_all($forumpattern,$body,$matches,PREG_SET_ORDER)) {
|
if(preg_match_all($forumpattern,$body,$matches,PREG_SET_ORDER)) {
|
||||||
foreach($matches as $match) {
|
foreach($matches as $match) {
|
||||||
$matched_forums ++;
|
$matched_forums ++;
|
||||||
if($term['url'] === $match[1] && $term['term'] === $match[2] && intval($term['ttype']) === TERM_FORUM) {
|
if($term['url'] === $match[1] && intval($term['ttype']) === TERM_FORUM) {
|
||||||
if($matched_forums <= $max_forums) {
|
if($matched_forums <= $max_forums) {
|
||||||
$plustagged = true;
|
$plustagged = true;
|
||||||
$found = true;
|
$found = true;
|
||||||
@ -2914,7 +2914,7 @@ function tgroup_check($uid, $item) {
|
|||||||
if(preg_match_all($pluspattern,$body,$matches,PREG_SET_ORDER)) {
|
if(preg_match_all($pluspattern,$body,$matches,PREG_SET_ORDER)) {
|
||||||
foreach($matches as $match) {
|
foreach($matches as $match) {
|
||||||
$matched_forums ++;
|
$matched_forums ++;
|
||||||
if($term['url'] === $match[1] && $term['term'] === $match[2] && intval($term['ttype']) === TERM_MENTION) {
|
if($term['url'] === $match[1] && intval($term['ttype']) === TERM_MENTION) {
|
||||||
if($matched_forums <= $max_forums) {
|
if($matched_forums <= $max_forums) {
|
||||||
$found = true;
|
$found = true;
|
||||||
break;
|
break;
|
||||||
@ -2927,7 +2927,7 @@ function tgroup_check($uid, $item) {
|
|||||||
if(preg_match_all($forumpattern,$body,$matches,PREG_SET_ORDER)) {
|
if(preg_match_all($forumpattern,$body,$matches,PREG_SET_ORDER)) {
|
||||||
foreach($matches as $match) {
|
foreach($matches as $match) {
|
||||||
$matched_forums ++;
|
$matched_forums ++;
|
||||||
if($term['url'] === $match[1] && $term['term'] === $match[2] && intval($term['ttype']) === TERM_FORUM) {
|
if($term['url'] === $match[1] && intval($term['ttype']) === TERM_FORUM) {
|
||||||
if($matched_forums <= $max_forums) {
|
if($matched_forums <= $max_forums) {
|
||||||
$found = true;
|
$found = true;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user