aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-07 02:55:00 -0700
committerfriendica <info@friendica.com>2014-04-07 02:55:00 -0700
commit10167fdf515e69c4645da9b0a020d0594c7a55a3 (patch)
treea07c2394b9aa0ed8fc017a9af4c976ec10e5c70e /mod
parent7d429b28940848cbf0cdf397ed664a594b28d994 (diff)
downloadvolse-hubzilla-10167fdf515e69c4645da9b0a020d0594c7a55a3.tar.gz
volse-hubzilla-10167fdf515e69c4645da9b0a020d0594c7a55a3.tar.bz2
volse-hubzilla-10167fdf515e69c4645da9b0a020d0594c7a55a3.zip
prevent follows of and notifications to deceased channels
Diffstat (limited to 'mod')
-rw-r--r--mod/zfinger.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php
index 4f59c1973..f2d46bff8 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -97,7 +97,9 @@ function zfinger_init(&$a) {
$special_channel = (($e['channel_pageflags'] & PAGE_PREMIUM) ? true : false);
$adult_channel = (($e['channel_pageflags'] & PAGE_ADULT) ? true : false);
$searchable = (($e['channel_pageflags'] & PAGE_HIDDEN) ? false : true);
- if($e['xchan_flags'] & XCHAN_FLAGS_HIDDEN)
+ $deleted = (($e['channel_pageflags'] & PAGE_REMOVED) ? true : false);
+
+ if(($e['xchan_flags'] & XCHAN_FLAGS_HIDDEN) || $deleted)
$searchable = false;
// This is for birthdays and keywords, but must check access permissions
@@ -164,7 +166,7 @@ function zfinger_init(&$a) {
$ret['target_sig'] = $zsig;
$ret['searchable'] = $searchable;
$ret['adult_content'] = $adult_channel;
-
+ $ret['deleted'] = $deleted;
// 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.