provide a "safe search" backend and allow for self-censorship using nsfw or adult profile keywords. Eventually the directories will be forced to mark adult profiles and sync this knowledge between them. At the moment there's no way to do an unsafe search, but we really just need a checkbox and pass the value through directory to dirsearch on the back end, and some will want this as a pconfig.

This commit is contained in:
friendica
2013-09-19 19:50:13 -07:00
parent 9f237f7dba
commit 54abed8457
4 changed files with 23 additions and 3 deletions

View File

@@ -1848,3 +1848,9 @@ function design_tools() {
}
/* case insensitive in_array() */
function in_arrayi($needle, $haystack) {
return in_array(strtolower($needle), array_map('strtolower', $haystack));
}