]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
block check can't be done inside the same try-expression as Subscription::getSubscrip...
authorhannes <h@nnesmannerhe.im>
Thu, 19 Nov 2015 15:55:11 +0000 (15:55 +0000)
committerhannes <h@nnesmannerhe.im>
Thu, 19 Nov 2015 15:55:11 +0000 (15:55 +0000)
lib/apiaction.php

index 3564709e5bc2c0242c14af8fb84a06effaf9b72e..25a51c4c5a4a16d77b89150e8bfaf60ae614062a 100644 (file)
@@ -274,11 +274,11 @@ class ApiAction extends Action
                 $sub = Subscription::getSubscription($this->scoped, $profile);
                 // Notifications on?
                 $twitter_user['following'] = true;
-                $twitter_user['statusnet_blocking']  = $this->scoped->hasBlocked($profile);
                 $twitter_user['notifications'] = ($sub->jabber || $sub->sms);
             } catch (NoResultException $e) {
                 // well, the values are already false...
             }
+            $twitter_user['statusnet_blocking']  = $this->scoped->hasBlocked($profile);            
         }
 
         if ($get_notice) {
@@ -1550,4 +1550,4 @@ class ApiAction extends Action
 
         return $uri;
     }
-}
+}
\ No newline at end of file