]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct the URI-generation for group memberships
authorEvan Prodromou <evan@status.net>
Mon, 12 Sep 2011 17:36:12 +0000 (13:36 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 12 Sep 2011 17:36:12 +0000 (13:36 -0400)
classes/Group_member.php

index 2ad6589a3c555313e35364e32d070f7888928477..53743e7f24810f41f30cb8e3ab5ada86065499a5 100644 (file)
@@ -203,14 +203,14 @@ class Group_member extends Managed_DataObject
         if (!empty($this->uri)) {
             return $this->uri;
         } else {
-            return self::newURI($this->member_id, $this->group_id, $this->created);
+            return self::newURI($this->profile_id, $this->group_id, $this->created);
         }
     }
 
-    static function newURI($member_id, $group_id, $created)
+    static function newURI($profile_id, $group_id, $created)
     {
         return TagURI::mint('join:%d:%d:%s',
-                            $member_id,
+                            $profile_id,
                             $group_id,
                             common_date_iso8601($created));
     }