1
1
Fork 0

admins can mark their nodes for explicit content (#5373)

* added field explicidContent to the metadata in the nodeinfo

* admins can mark their nodes for explicit content

* booleans shall be small
This commit is contained in:
Tobias Diekershoff 2018-07-14 18:08:06 +02:00 committed by Hypolite Petovan
commit 80ac7da01d
7 changed files with 16 additions and 1 deletions

View file

@ -141,6 +141,8 @@ function nodeinfo_init(App $a) {
if (Addon::isEnabled('twitter')) {
$nodeinfo['metadata']['services']['inbound'][] = 'twitter';
}
$nodeinfo['metadata']['explicitContent'] = Config::get('system', 'explicit_content', false) == true;
}
header('Content-type: application/json; charset=utf-8');