AtomPub-related actions are only read-only on GET
This commit is contained in:
parent
8a21b13ee9
commit
d038d0fa46
|
@ -171,9 +171,14 @@ class ApiStatusesShowAction extends ApiPrivateAuthAction
|
|||
*
|
||||
* @return boolean true
|
||||
*/
|
||||
|
||||
function isReadOnly($args)
|
||||
{
|
||||
return true;
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -241,9 +241,14 @@ class ApiTimelineUserAction extends ApiBareAuthAction
|
|||
*
|
||||
* @return boolean true
|
||||
*/
|
||||
|
||||
function isReadOnly($args)
|
||||
{
|
||||
return true;
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user