diff options
-rw-r--r-- | actions/apistatusesshow.php | 7 | ||||
-rw-r--r-- | actions/apitimelineuser.php | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/actions/apistatusesshow.php b/actions/apistatusesshow.php index f4a79ddbc..e684a07ee 100644 --- a/actions/apistatusesshow.php +++ b/actions/apistatusesshow.php @@ -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; + } } /** diff --git a/actions/apitimelineuser.php b/actions/apitimelineuser.php index e4a8b596e..f716232e4 100644 --- a/actions/apitimelineuser.php +++ b/actions/apitimelineuser.php @@ -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; + } } /** |