]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
mark a bunch of actions read-only
authorRobin Millette <millette@controlyourself.ca>
Fri, 23 Jan 2009 09:15:15 +0000 (09:15 +0000)
committerRobin Millette <millette@plantard.controlezvous.ca>
Fri, 23 Jan 2009 09:15:15 +0000 (09:15 +0000)
20 files changed:
actions/accesstoken.php
actions/allrss.php
actions/avatarbynickname.php
actions/doc.php
actions/favoritesrss.php
actions/grouplogo.php
actions/groupsearch.php
actions/logout.php
actions/microsummary.php
actions/noticesearch.php
actions/noticesearchrss.php
actions/opensearch.php
actions/peoplesearch.php
actions/publicrss.php
actions/replies.php
actions/repliesrss.php
actions/showmessage.php
actions/subscribers.php
actions/tagrss.php
actions/userrss.php

index 65c67c64ed615d8d469baf19633ceb7231c34efc..6e91e6c1830db5c713413f57ffe25e262d2f0431 100644 (file)
@@ -71,4 +71,9 @@ class AccesstokenAction extends Action
             $this->serverError($e->getMessage());
         }
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
index 248f59f4386826b810d0b2b1f73acc5f604575a5..05787f3f73cb8cdc5398cb4dc8c7140facc371cc 100644 (file)
@@ -123,5 +123,10 @@ class AllrssAction extends Rss10Action
         $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
         return $avatar ? $avatar->url : null;
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
 
index fec202016ea5e1fc3bf4dc29acf4258904c8fce3..9bbdecefac8c9f498cda453dfeb4662cec276d17 100644 (file)
@@ -97,5 +97,10 @@ class AvatarbynicknameAction extends Action
         }
         common_redirect($url, 302);
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
 
index 3755bb051d29adb3f7f6a19b9976dfd527e03ba7..6957659add3c1bcaa8455b2ffac167ceab952057 100644 (file)
@@ -107,4 +107,9 @@ class DocAction extends Action
     {
         return ucfirst($this->title);
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
index 19339325cfbe82b3751e24aaf673427d00ab94ba..ad72dce9e729c3ec88d67728adbb714ef8a90ba8 100644 (file)
@@ -114,5 +114,10 @@ class FavoritesrssAction extends Rss10Action
     {
         return null;
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
 
index 393070d5dc99b30cba6642c27e9a1d57220b5c95..496b5d260bc61af9b56ce7aea90c7c8d7cacc8f3 100644 (file)
@@ -508,4 +508,9 @@ class GrouplogoAction extends Action
         $nav = new GroupNav($this, $this->group);
         $nav->show();
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
index 66f5c87b3fe670872a72e9e08dbe83cfc14a3c0d..9b0026db949c60cb7b77a5964792141e6c97e791 100644 (file)
@@ -103,5 +103,10 @@ class GroupSearchResults extends GroupList
     {
         return preg_replace($this->pattern, '<strong>\\1</strong>', htmlspecialchars($text));
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
 
index 0ff8dc7545e88957aa7bf8f987f134712d5c2ba3..3977f90a032f2b6bd9167e8f5e410ce10e8ea2a3 100644 (file)
@@ -54,7 +54,7 @@ class LogoutAction extends Action
      */
     function isReadOnly()
     {
-        return true;
+        return false;
     }
 
     /**
index 196dd5de83f14d0b7785e3e0d815770704e4c029..065a2e0eba02b93b12bbbdbce748de2086a6ce8b 100644 (file)
@@ -73,4 +73,9 @@ class MicrosummaryAction extends Action
         
         print $user->nickname . ': ' . $notice->content;
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
index 8c5128de15234fe3900848361fb6d2ac06bed328..3c3fdca9f14951b62a5bff58f463be6700c4cc10 100644 (file)
@@ -222,5 +222,10 @@ class NoticesearchAction extends SearchAction
         } while ($count);
         return $result;
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
 
index c1a1c2c6729436a7b85b3aa1bf6ffd08e740ba12..7172977ee7a761acb47dcad396a263f57fa237ed 100644 (file)
@@ -95,4 +95,9 @@ class NoticesearchrssAction extends Rss10Action
     {
         return null;
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
index d7705972f0d68055cdaf693efe98cd73af2c29b9..7709249bb195150e29945f5c9c6354df396b68e0 100644 (file)
@@ -83,5 +83,10 @@ class OpensearchAction extends Action
         $this->elementEnd('OpenSearchDescription');
         common_end_xml();
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
 
index 3c672c9400450051eb1964c189ca099094ca51d7..615201c461f49c8c521e1530417b9bb4fc894422 100644 (file)
@@ -109,5 +109,10 @@ class PeopleSearchResults extends ProfileList
     {
         return preg_replace($this->pattern, '<strong>\\1</strong>', htmlspecialchars($text));
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
 
index 844c334bea89f3e63554ad263c034b91da6077b7..c3587799718b2c40fa33cb29ea661c082f9c4f53 100644 (file)
@@ -102,5 +102,10 @@ class PublicrssAction extends Rss10Action
     {
         // nop
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
 
index ea8ef4764373bd4984d859b07e7c6fa5f3b53a9a..5777d17fd3266cb8b7105613ef4fa3836d1e7dd4 100644 (file)
@@ -191,4 +191,9 @@ class RepliesAction extends Action
                           $this->page, 'replies',
                           array('nickname' => $this->user->nickname));
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
index 48c4fa2553afd5639fb74de6cc971be2970c0848..985318bf168794943b1d1cc5216b21279d502f23 100644 (file)
@@ -82,4 +82,9 @@ class RepliesrssAction extends Rss10Action
         $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
         return ($avatar) ? $avatar->url : null;
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
index 289414153ba60e75d37c9c26e1528d8e5408e0d5..572a71739aa56a000062c8e7418b02dff34317c4 100644 (file)
@@ -176,4 +176,9 @@ class ShowmessageAction extends MailboxAction
     {
         return '';
     }
-}
\ No newline at end of file
+
+    function isReadOnly()
+    {
+        return true;
+    }
+}
index be9df2b124732894028a6c7a70573d3c42f9c174..fb8733c773ce494f5f31273f902ae486bee972d7 100644 (file)
@@ -103,4 +103,9 @@ class SubscribersList extends ProfileList
                                   'nickname' => $this->owner->nickname));
         $bf->show();
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
index b0227ab391aac76cb98824b9d59885c5a83421a4..b4c2dcdff72135aab2f5c3d395d1b8596eab9d1c 100644 (file)
@@ -66,4 +66,9 @@ class TagrssAction extends Rss10Action
                'description' => sprintf(_('Microblog tagged with %s'), $tagname));
         return $c;
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }
index c1f2321eebb891b31481e2ba565e15994ad8cd66..04855cccaded30a05ac67a0789647aae8b7e882f 100644 (file)
@@ -94,5 +94,10 @@ class UserrssAction extends Rss10Action
         header('X-SUP-ID: '.$url);
         parent::initRss($limit);
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }