]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
OStatus: fix for remote group join via non-logged-in 'join' button.
authorBrion Vibber <brion@pobox.com>
Thu, 4 Mar 2010 17:24:47 +0000 (09:24 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 4 Mar 2010 17:24:47 +0000 (09:24 -0800)
Bad lookup was sending us to the first group instead of the selected group.

plugins/OStatus/actions/ostatusinit.php

index 1e45025b09ec19ffc8de44a10d0a2e3cd26d2e23..22aea9f7097831faf5aafee5944b800d1ef56cac 100644 (file)
@@ -186,7 +186,7 @@ class OStatusInitAction extends Action
                 $this->clientError("No such user.");
             }
         } else if ($this->group) {
-            $group = Local_group::staticGet('id', $this->group);
+            $group = Local_group::staticGet('nickname', $this->group);
             if ($group) {
                 return common_local_url('groupbyid', array('id' => $group->group_id));
             } else {