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:
parent
54a0e801f3
commit
82a9560a2d
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user