From: Brion Vibber Date: Tue, 14 Dec 2010 21:19:22 +0000 (-0800) Subject: AtomPub fix: correct the response URL given from posting a new message (wrong paramet... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=82a9560a2d11f6b9355b26f23fb1bfe224d60bfd;p=quix0rs-gnu-social.git AtomPub fix: correct the response URL given from posting a new message (wrong parameter meant we got the main page instead of the message's URL) --- diff --git a/actions/apitimelineuser.php b/actions/apitimelineuser.php index ca4b090a16..81809670b4 100644 --- a/actions/apitimelineuser.php +++ b/actions/apitimelineuser.php @@ -356,7 +356,7 @@ class ApiTimelineUserAction extends ApiBareAuthAction if (!empty($saved)) { header('HTTP/1.1 201 Created'); - header("Location: " . common_local_url('ApiStatusesShow', array('notice_id' => $saved->id, + header("Location: " . common_local_url('ApiStatusesShow', array('id' => $saved->id, 'format' => 'atom'))); $this->showSingleAtomStatus($saved); }