summaryrefslogtreecommitdiff
path: root/actions/twitapifavorites.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/twitapifavorites.php')
-rw-r--r--actions/twitapifavorites.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/actions/twitapifavorites.php b/actions/twitapifavorites.php
index a4afa732a..4de567603 100644
--- a/actions/twitapifavorites.php
+++ b/actions/twitapifavorites.php
@@ -23,6 +23,19 @@ require_once(INSTALLDIR.'/lib/twitterapi.php');
class TwitapifavoritesAction extends TwitterapiAction {
+ function is_readonly() {
+
+ static $write_methods = array('favorites');
+
+ $cmdtext = explode('.', $this->arg('method'));
+
+ if (in_array($cmdtext[0], $write_methods)) {
+ return false;
+ }
+
+ return true;
+ }
+
function favorites($args, $apidata) {
parent::handle($args);
common_server_error("API method under construction.", $code=501);