aboutsummaryrefslogtreecommitdiffstats
path: root/include/follow.php
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 /include/follow.php
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 'include/follow.php')
-rw-r--r--include/follow.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/follow.php b/include/follow.php
index 0508a8b37..d98a58198 100644
--- a/include/follow.php
+++ b/include/follow.php
@@ -75,11 +75,17 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
return $result;
}
+
// do we have an xchan and hubloc?
// If not, create them.
$x = import_xchan($j);
+ if(array_key_exists('deleted',$j) && intval($j['deleted'])) {
+ $result['message'] = t('Channel was deleted and no longer exists.');
+ return $result;
+ }
+
if(! $x['success'])
return $x;