X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsubscribe.php;h=a90d7facdfaca15e60c16d03c376833af228d448;hb=385fb947236fcbf429a147be90569db9c7edc152;hp=0bc522867e39ca4a62ffd12a5ebf417a85441ba5;hpb=85873b1f2b5b6a3e065cf5d227df31380b6f239e;p=quix0rs-gnu-social.git diff --git a/actions/subscribe.php b/actions/subscribe.php index 0bc522867e..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; }