From 82a9560a2d11f6b9355b26f23fb1bfe224d60bfd Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 14 Dec 2010 13:19:22 -0800 Subject: [PATCH] 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) --- actions/apitimelineuser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }