From 10167fdf515e69c4645da9b0a020d0594c7a55a3 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 7 Apr 2014 02:55:00 -0700 Subject: prevent follows of and notifications to deceased channels --- include/follow.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/follow.php') 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; -- cgit v1.2.3