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)

This commit is contained in:
Brion Vibber 2010-12-14 13:19:22 -08:00
parent 54a0e801f3
commit 82a9560a2d

View File

@ -356,7 +356,7 @@ class ApiTimelineUserAction extends ApiBareAuthAction
if (!empty($saved)) { if (!empty($saved)) {
header('HTTP/1.1 201 Created'); 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'))); 'format' => 'atom')));
$this->showSingleAtomStatus($saved); $this->showSingleAtomStatus($saved);
} }