From 64844473f866609ed093ca7046fea59170e6c77e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 19 Jan 2011 14:26:31 -0800 Subject: [PATCH] fix wrong datatypes (saving string instead of array) in AtomPub notice processing --- actions/apitimelineuser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/apitimelineuser.php b/actions/apitimelineuser.php index 5809df3b5e..24aa08e279 100644 --- a/actions/apitimelineuser.php +++ b/actions/apitimelineuser.php @@ -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)); -- 2.39.5