aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-11-22 04:03:58 +0000
committerMario <mario@mariovavti.com>2018-12-02 10:12:44 +0100
commit8e25c091f4c10494e0c7a4c026f80070eaeabc4a (patch)
tree988da1ced4eb0bacebc90e9af6da3fe73c078ac5
parent0bba9482dfbcc0fd8bea880ac3820548281ecfc2 (diff)
downloadvolse-hubzilla-8e25c091f4c10494e0c7a4c026f80070eaeabc4a.tar.gz
volse-hubzilla-8e25c091f4c10494e0c7a4c026f80070eaeabc4a.tar.bz2
volse-hubzilla-8e25c091f4c10494e0c7a4c026f80070eaeabc4a.zip
no mention notifications from mastodon (and pleroma)
(cherry picked from commit ea235c0c6751b682332b968b4c18f905e8ece451)
-rwxr-xr-xinclude/items.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/items.php b/include/items.php
index d8a9e8e56..a679ebf3f 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2643,7 +2643,7 @@ function tag_deliver($uid, $item_id) {
if(preg_match_all($pluspattern,$body,$matches,PREG_SET_ORDER)) {
foreach($matches as $match) {
$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) {
$plustagged = true;
$found = true;
@@ -2657,7 +2657,7 @@ function tag_deliver($uid, $item_id) {
if(preg_match_all($forumpattern,$body,$matches,PREG_SET_ORDER)) {
foreach($matches as $match) {
$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) {
$plustagged = true;
$found = true;
@@ -2893,7 +2893,7 @@ function tgroup_check($uid, $item) {
if(preg_match_all($pluspattern,$body,$matches,PREG_SET_ORDER)) {
foreach($matches as $match) {
$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) {
$found = true;
break;
@@ -2906,7 +2906,7 @@ function tgroup_check($uid, $item) {
if(preg_match_all($forumpattern,$body,$matches,PREG_SET_ORDER)) {
foreach($matches as $match) {
$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) {
$found = true;
break;