Commit 82a9560a authored by Brion Vibber's avatar Brion Vibber

AtomPub fix: correct the response URL given from posting a new message (wrong...

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)
parent 54a0e801
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment