]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
allow posting to groups through atompub
authorEvan Prodromou <evan@status.net>
Sat, 27 Aug 2011 21:37:10 +0000 (17:37 -0400)
committerEvan Prodromou <evan@status.net>
Sat, 27 Aug 2011 21:37:10 +0000 (17:37 -0400)
actions/apitimelineuser.php

index 02e4860864f7ecefb71970c6f902b2e29b353268..62d0a5e0d5bbbd78319b3f0aa5aee6833be18ab5 100644 (file)
@@ -447,7 +447,7 @@ class ApiTimelineUserAction extends ApiBareAuthAction
                 } else {
                     $group = User_group::staticGet('uri', $uri);
                     if (!empty($group)) {
-                        $options['groups'][] = $uri;
+                        $options['groups'][] = $group->id;
                     } else {
                         // @fixme: hook for discovery here
                         common_log(LOG_WARNING, sprintf('AtomPub post with unknown attention URI %s', $uri));