aboutsummaryrefslogtreecommitdiffstats
path: root/mod/zfinger.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-22 20:38:24 -0700
committerfriendica <info@friendica.com>2013-09-22 20:38:24 -0700
commitcdfb5f9dc740734fbd95363a026ab44ae1dd9d94 (patch)
tree0b3953bb3f1d860ac728f762cd6f378b67830ba7 /mod/zfinger.php
parentdf8035344fed17950cd129cf42bb1aab210dc334 (diff)
downloadvolse-hubzilla-cdfb5f9dc740734fbd95363a026ab44ae1dd9d94.tar.gz
volse-hubzilla-cdfb5f9dc740734fbd95363a026ab44ae1dd9d94.tar.bz2
volse-hubzilla-cdfb5f9dc740734fbd95363a026ab44ae1dd9d94.zip
adult channel setting
Diffstat (limited to 'mod/zfinger.php')
-rw-r--r--mod/zfinger.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php
index e1e19054e..49d07a40c 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -72,8 +72,8 @@ function zfinger_init(&$a) {
$id = $e['channel_id'];
$special_channel = (($e['channel_pageflags'] & PAGE_PREMIUM) ? true : false);
-
- $searchable = (($e['channel_pageflags'] & PAGE_HIDDEN) ? false : true);
+ $adult_channel = (($e['channel_pageflags'] & PAGE_ADULT) ? true : false);
+ $searchable = (($e['channel_pageflags'] & PAGE_HIDDEN) ? false : true);
if($e['xchan_flags'] & XCHAN_FLAGS_HIDDEN)
$searchable = false;
@@ -136,7 +136,8 @@ function zfinger_init(&$a) {
$ret['target'] = $ztarget;
$ret['target_sig'] = $zsig;
$ret['searchable'] = $searchable;
-
+ $ret['adult_content'] = $adult_channel;
+
// premium or other channel desiring some contact with potential followers before connecting.
// This is a template - %s will be replaced with the follow_url we discover for the return channel.