forked from friendica/friendica-addons
fix nsfw for tag array
This commit is contained in:
parent
3596e1d594
commit
26e302cdc3
|
@ -144,13 +144,16 @@ function nsfw_prepare_body(&$a,&$b) {
|
||||||
$found = true;
|
$found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(stristr($b['item']['tags'], '>' . $word . '<' )) {
|
if(is_array($b['item']['tags']) && count($b['item']['tags'])) {
|
||||||
$found = true;
|
foreach($b['item']['tags'] as $t) {
|
||||||
break;
|
if(stristr($t, '>' . $word . '<' )) {
|
||||||
|
$found = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if($found) {
|
if($found) {
|
||||||
$rnd = random_string(8);
|
$rnd = random_string(8);
|
||||||
|
|
Loading…
Reference in a new issue