summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-12-14 13:19:22 -0800
committerBrion Vibber <brion@pobox.com>2010-12-14 13:19:22 -0800
commit82a9560a2d11f6b9355b26f23fb1bfe224d60bfd (patch)
tree12683611defc97558df2d765c55f45f6bc2eb76f
parent54a0e801f3485424d0ad352c02ab331b2f7a11fb (diff)
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)
-rw-r--r--actions/apitimelineuser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/apitimelineuser.php b/actions/apitimelineuser.php
index ca4b090a1..81809670b 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);
}