Merge remote-tracking branch 'mike/master' into dev
This commit is contained in:
commit
85f52d2aed
@ -39,6 +39,8 @@ class ThreadItem {
|
|||||||
$this->data = $data;
|
$this->data = $data;
|
||||||
$this->toplevel = ($this->get_id() == $this->get_data_value('parent'));
|
$this->toplevel = ($this->get_id() == $this->get_data_value('parent'));
|
||||||
|
|
||||||
|
$observer = \App::get_observer();
|
||||||
|
|
||||||
// Prepare the children
|
// Prepare the children
|
||||||
if($data['children']) {
|
if($data['children']) {
|
||||||
foreach($data['children'] as $item) {
|
foreach($data['children'] as $item) {
|
||||||
@ -51,6 +53,7 @@ class ThreadItem {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$child = new ThreadItem($item);
|
$child = new ThreadItem($item);
|
||||||
$this->add_child($child);
|
$this->add_child($child);
|
||||||
}
|
}
|
||||||
|
@ -2662,7 +2662,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;
|
||||||
@ -2676,7 +2676,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;
|
||||||
@ -2912,7 +2912,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;
|
||||||
@ -2925,7 +2925,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