X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsubscribe.php;h=a90d7facdfaca15e60c16d03c376833af228d448;hb=385fb947236fcbf429a147be90569db9c7edc152;hp=15b89a3122f95eeecce93fec73cff71f858141eb;hpb=9014a0a90d9ab5ee408aded51f379fd084fcd82c;p=quix0rs-gnu-social.git diff --git a/actions/subscribe.php b/actions/subscribe.php index 15b89a3122..a90d7facdf 100644 --- a/actions/subscribe.php +++ b/actions/subscribe.php @@ -1,7 +1,7 @@ . */ -if (!defined('LACONICA')) { exit(1); } +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } class SubscribeAction extends Action { @@ -58,7 +58,7 @@ class SubscribeAction extends Action $result = subs_subscribe_to($user, $other); - if($result != true) { + if (is_string($result)) { $this->clientError($result); return; }