]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
AtomPub-related actions are only read-only on GET
authorEvan Prodromou <evan@status.net>
Mon, 15 Nov 2010 19:14:09 +0000 (14:14 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 15 Nov 2010 19:14:09 +0000 (14:14 -0500)
actions/apistatusesshow.php
actions/apitimelineuser.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;
+       }
     }
 
     /**
index e4a8b596ee7d6491a817f7f2b826af420d719aa6..f716232e43b16ac6fa77aa1f56148067d4b864ab 100644 (file)
@@ -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;
+       }
     }
 
     /**