]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/classes/Ostatus_profile.php
Differentiate two similar log warning messages
[quix0rs-gnu-social.git] / plugins / OStatus / classes / Ostatus_profile.php
index d08f91330920bf3dd657709faa26ef67174de8ae..8c7be80a60e2be7d280dfa0c01c24f1f6afc2ad0 100644 (file)
@@ -193,6 +193,11 @@ class Ostatus_profile extends Managed_DataObject
         }
     }
 
+    public function isPerson()
+    {
+        return $this->localProfile()->isPerson();
+    }
+
     /**
      * @return boolean true if this is a remote peopletag
      */
@@ -1292,7 +1297,7 @@ class Ostatus_profile extends Managed_DataObject
             try {
                 $this->updateAvatar($avatar);
             } catch (Exception $ex) {
-                common_log(LOG_WARNING, "Exception saving OStatus profile avatar: " . $ex->getMessage());
+                common_log(LOG_WARNING, "Exception updating OStatus profile avatar: " . $ex->getMessage());
             }
         }
     }
@@ -1859,23 +1864,3 @@ class Ostatus_profile extends Managed_DataObject
         $this->subscribe();
     }
 }
-
-/**
- * Exception indicating we've got a remote reference to a local user,
- * not a remote user!
- *
- * If we can ue a local profile after all, it's available as $e->profile.
- */
-class OStatusShadowException extends Exception
-{
-    public $profile;
-
-    /**
-     * @param Profile $profile
-     * @param string $message
-     */
-    function __construct($profile, $message) {
-        $this->profile = $profile;
-        parent::__construct($message);
-    }
-}