allow posting to groups through atompub

This commit is contained in:
Evan Prodromou 2011-08-27 17:37:10 -04:00
parent db9ac1a531
commit abdae45679

View 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));