mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 03:03:42 +00:00
make nsfw less sensitive to leading/trailing whitespace in list of terms
This commit is contained in:
parent
bdbc3a2625
commit
e533312985
2 changed files with 2 additions and 1 deletions
BIN
nsfw.tgz
BIN
nsfw.tgz
Binary file not shown.
|
@ -94,7 +94,8 @@ function nsfw_prepare_body(&$a,&$b) {
|
|||
$found = false;
|
||||
if(count($arr)) {
|
||||
foreach($arr as $word) {
|
||||
if(! strlen(trim($word))) {
|
||||
$word = trim($word);
|
||||
if(! strlen($word)) {
|
||||
continue;
|
||||
}
|
||||
if(strpos($word,'/') === 0) {
|
||||
|
|
Loading…
Reference in a new issue