]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apistatusesshow.php
AtomPub-related actions are only read-only on GET
[quix0rs-gnu-social.git] / actions / apistatusesshow.php
index f4a79ddbcb819c4cd2adeae710e267b43312c594..e684a07eec90a56033ecf31106e886e57ab1bfd3 100644 (file)
@@ -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;
+       }
     }
 
     /**