prevent follows of and notifications to deceased channels

This commit is contained in:
friendica
2014-04-07 02:55:00 -07:00
parent 7d429b2894
commit 10167fdf51
5 changed files with 23 additions and 5 deletions
+6
View File
@@ -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;