diff options
author | Evan Prodromou <evan@status.net> | 2010-11-15 14:14:09 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-11-15 14:14:09 -0500 |
commit | d038d0fa465f76395f8e341a04a64661b631c122 (patch) | |
tree | 5c9c19c237494cf9497095e4b36861c0c0fa75ba /actions/apistatusesshow.php | |
parent | 8a21b13ee93cf46626ba9e99a4fda44587e6d1a1 (diff) |
AtomPub-related actions are only read-only on GET
Diffstat (limited to 'actions/apistatusesshow.php')
-rw-r--r-- | actions/apistatusesshow.php | 7 |
1 files changed, 6 insertions, 1 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; + } } /** |