diff options
Diffstat (limited to 'actions/twitapifriendships.php')
-rw-r--r-- | actions/twitapifriendships.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/actions/twitapifriendships.php b/actions/twitapifriendships.php index 19bc71b7a..05c192ea6 100644 --- a/actions/twitapifriendships.php +++ b/actions/twitapifriendships.php @@ -23,6 +23,20 @@ require_once(INSTALLDIR.'/lib/twitterapi.php'); class TwitapifriendshipsAction extends TwitterapiAction { + function is_readonly() { + + static $write_methods = array( 'create', + 'destroy'); + + $cmdtext = explode('.', $this->arg('method')); + + if (in_array($cmdtext[0], $write_methods)) { + return false; + } + + return true; + } + function create($args, $apidata) { parent::handle($args); |