fix wrong datatypes (saving string instead of array) in AtomPub notice processing
This commit is contained in:
parent
963e7576f2
commit
64844473f8
|
@ -427,11 +427,11 @@ class ApiTimelineUserAction extends ApiBareAuthAction
|
||||||
$profile = Profile::fromURI($uri);
|
$profile = Profile::fromURI($uri);
|
||||||
|
|
||||||
if (!empty($profile)) {
|
if (!empty($profile)) {
|
||||||
$options['replies'] = $uri;
|
$options['replies'][] = $uri;
|
||||||
} 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'][] = $uri;
|
||||||
} 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…
Reference in New Issue