]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
hook in OStatusPlugin to return Ostatus_profile URIs where applicable
authorEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 03:52:52 +0000 (22:52 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 03:52:52 +0000 (22:52 -0500)
plugins/OStatus/OStatusPlugin.php

index 641765daebae4e325cfdbf4d4a3b702de70b1c8a..a8c292301d63fd845f5a2784e5f7df25f9b38313 100644 (file)
@@ -484,4 +484,14 @@ class OStatusPlugin extends Plugin
 
         return true;
     }
+
+    function onStartGetProfileUri($profile, &$uri)
+    {
+        $oprofile = Ostatus_profile::staticGet('profile_id', $profile->id);
+        if (!empty($oprofile)) {
+            $uri = $oprofile->uri;
+            return false;
+        }
+        return true;
+    }
 }