]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/User_group.php
Fixed group representation in Directory plugin, also some ->raw calls
[quix0rs-gnu-social.git] / classes / User_group.php
index b95ab228f6f5ecc00f51ffc21933aefa3a216f46..497e301dade37c33b8de48f00978c692ae825ec9 100644 (file)
@@ -115,18 +115,7 @@ class User_group extends Managed_DataObject
 
     function homeUrl()
     {
-        $url = null;
-        if (Event::handle('StartUserGroupHomeUrl', array($this, &$url))) {
-            // normally stored in mainpage, but older ones may be null
-            if (!empty($this->mainpage)) {
-                $url = $this->mainpage;
-            } elseif ($this->isLocal()) {
-                $url = common_local_url('showgroup',
-                                        array('nickname' => $this->nickname));
-            }
-        }
-        Event::handle('EndUserGroupHomeUrl', array($this, &$url));
-        return $url;
+        $this->getProfile()->getUrl();
     }
 
     function getUri()