]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix wrong datatypes (saving string instead of array) in AtomPub notice processing
authorBrion Vibber <brion@pobox.com>
Wed, 19 Jan 2011 22:26:31 +0000 (14:26 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 19 Jan 2011 22:26:31 +0000 (14:26 -0800)
actions/apitimelineuser.php

index 5809df3b5ee17fb6a18b9fa3db8867b3bba600f1..24aa08e27953c42ffe8416f2f8c68a11868c058b 100644 (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));