mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 03:43:40 +00:00
fix nsfw for tag array
This commit is contained in:
parent
3596e1d594
commit
26e302cdc3
2 changed files with 8 additions and 5 deletions
BIN
nsfw.tgz
BIN
nsfw.tgz
Binary file not shown.
|
@ -144,13 +144,16 @@ function nsfw_prepare_body(&$a,&$b) {
|
|||
$found = true;
|
||||
break;
|
||||
}
|
||||
if(stristr($b['item']['tags'], '>' . $word . '<' )) {
|
||||
$found = true;
|
||||
break;
|
||||
if(is_array($b['item']['tags']) && count($b['item']['tags'])) {
|
||||
foreach($b['item']['tags'] as $t) {
|
||||
if(stristr($t, '>' . $word . '<' )) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if($found) {
|
||||
$rnd = random_string(8);
|
||||
|
|
Loading…
Reference in a new issue