From 9e3013c6b613528eac4ace08524360330910801e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 20 Jan 2010 17:00:42 -0500 Subject: mark retweet api actions read-only where applicable --- actions/apistatusesretweets.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'actions/apistatusesretweets.php') diff --git a/actions/apistatusesretweets.php b/actions/apistatusesretweets.php index f7a3dd60a..81744c2b4 100644 --- a/actions/apistatusesretweets.php +++ b/actions/apistatusesretweets.php @@ -113,4 +113,19 @@ class ApiStatusesRetweetsAction extends ApiAuthAction break; } } + + /** + * Return true if read only. + * + * MAY override + * + * @param array $args other arguments + * + * @return boolean is read only action? + */ + + function isReadOnly($args) + { + return false; + } } -- cgit v1.2.3-54-g00ecf From e5eb95ab59598392bfae99adac1ac0716397ba13 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 21 Jan 2010 11:32:01 -0500 Subject: retweet API methods are readonly --- actions/apistatusesretweets.php | 2 +- actions/apitimelineretweetedbyme.php | 2 +- actions/apitimelineretweetedtome.php | 2 +- actions/apitimelineretweetsofme.php | 15 +++++++++++++++ 4 files changed, 18 insertions(+), 3 deletions(-) (limited to 'actions/apistatusesretweets.php') diff --git a/actions/apistatusesretweets.php b/actions/apistatusesretweets.php index 81744c2b4..a79d43168 100644 --- a/actions/apistatusesretweets.php +++ b/actions/apistatusesretweets.php @@ -126,6 +126,6 @@ class ApiStatusesRetweetsAction extends ApiAuthAction function isReadOnly($args) { - return false; + return true; } } diff --git a/actions/apitimelineretweetedbyme.php b/actions/apitimelineretweetedbyme.php index 7958dab37..54d32e5fa 100644 --- a/actions/apitimelineretweetedbyme.php +++ b/actions/apitimelineretweetedbyme.php @@ -136,6 +136,6 @@ class ApiTimelineRetweetedByMeAction extends ApiAuthAction function isReadOnly($args) { - return false; + return true; } } diff --git a/actions/apitimelineretweetedtome.php b/actions/apitimelineretweetedtome.php index 66f06cc0e..e47bc30b8 100644 --- a/actions/apitimelineretweetedtome.php +++ b/actions/apitimelineretweetedtome.php @@ -135,6 +135,6 @@ class ApiTimelineRetweetedToMeAction extends ApiAuthAction function isReadOnly($args) { - return false; + return true; } } diff --git a/actions/apitimelineretweetsofme.php b/actions/apitimelineretweetsofme.php index 6ca2c779c..e4b09e9bd 100644 --- a/actions/apitimelineretweetsofme.php +++ b/actions/apitimelineretweetsofme.php @@ -123,4 +123,19 @@ class ApiTimelineRetweetsOfMeAction extends ApiAuthAction break; } } + + /** + * Return true if read only. + * + * MAY override + * + * @param array $args other arguments + * + * @return boolean is read only action? + */ + + function isReadOnly($args) + { + return true; + } } -- cgit v1.2.3-54-g00ecf