https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3596e1d
)
fix nsfw for tag array
author
friendica
<info@friendica.com>
Tue, 9 Jul 2013 00:41:48 +0000
(17:41 -0700)
committer
friendica
<info@friendica.com>
Tue, 9 Jul 2013 00:41:48 +0000
(17:41 -0700)
nsfw.tgz
patch
|
blob
|
history
nsfw/nsfw.php
patch
|
blob
|
history
diff --git
a/nsfw.tgz
b/nsfw.tgz
index
da2890e
..
9d34dc0
100755
(executable)
Binary files a/nsfw.tgz and b/nsfw.tgz differ
diff --git
a/nsfw/nsfw.php
b/nsfw/nsfw.php
index
9a40416
..
3f00a2f
100755
(executable)
--- a/
nsfw/nsfw.php
+++ b/
nsfw/nsfw.php
@@
-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);