fix wrong datatypes (saving string instead of array) in AtomPub notice processing

This commit is contained in:
Brion Vibber 2011-01-19 14:26:31 -08:00
parent 963e7576f2
commit 64844473f8
1 changed files with 2 additions and 2 deletions

View File

@ -427,11 +427,11 @@ class ApiTimelineUserAction extends ApiBareAuthAction
$profile = Profile::fromURI($uri);
if (!empty($profile)) {
$options['replies'] = $uri;
$options['replies'][] = $uri;
} else {
$group = User_group::staticGet('uri', $uri);
if (!empty($group)) {
$options['groups'] = $uri;
$options['groups'][] = $uri;
} else {
// @fixme: hook for discovery here
common_log(LOG_WARNING, sprintf(_('AtomPub post with unknown attention URI %s'), $uri));