]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Profile.php
Work in progress: can create & cancel sub requests
[quix0rs-gnu-social.git] / classes / Profile.php
index 98fe9ede2facf0bcf7fc700291ed1e534f7cf84c..94e709b5084c83979e141d33286d00b235858262 100644 (file)
@@ -413,6 +413,17 @@ class Profile extends Memcached_DataObject
     {
         return Subscription::exists($this, $other);
     }
+    
+    /**
+     * Check if a pending subscription request is outstanding for this...
+     *
+     * @param Profile $other
+     * @return boolean
+     */
+    function hasPendingSubscription($other)
+    {
+        return Subscription_queue::exists($this, $other);
+    }
 
     /**
      * Are these two profiles subscribed to each other?