From: Evan Prodromou Date: Mon, 15 Nov 2010 19:14:09 +0000 (-0500) Subject: AtomPub-related actions are only read-only on GET X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d038d0fa465f76395f8e341a04a64661b631c122;p=quix0rs-gnu-social.git AtomPub-related actions are only read-only on GET --- diff --git a/actions/apistatusesshow.php b/actions/apistatusesshow.php index f4a79ddbcb..e684a07eec 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 e4a8b596ee..f716232e43 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; + } } /**