forked from GNUsocial/gnu-social
allow posting to groups through atompub
This commit is contained in:
parent
db9ac1a531
commit
abdae45679
@ -447,7 +447,7 @@ class ApiTimelineUserAction extends ApiBareAuthAction
|
|||||||
} else {
|
} else {
|
||||||
$group = User_group::staticGet('uri', $uri);
|
$group = User_group::staticGet('uri', $uri);
|
||||||
if (!empty($group)) {
|
if (!empty($group)) {
|
||||||
$options['groups'][] = $uri;
|
$options['groups'][] = $group->id;
|
||||||
} else {
|
} else {
|
||||||
// @fixme: hook for discovery here
|
// @fixme: hook for discovery here
|
||||||
common_log(LOG_WARNING, sprintf('AtomPub post with unknown attention URI %s', $uri));
|
common_log(LOG_WARNING, sprintf('AtomPub post with unknown attention URI %s', $uri));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user