summaryrefslogtreecommitdiff
path: root/lib/xrdaction.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-12-14 16:14:15 -0800
committerBrion Vibber <brion@pobox.com>2010-12-14 16:14:15 -0800
commit6c671141982c5837a2e5bf1e90de389c728d5dee (patch)
treecbeb94f9817098fa48deded72a0165b2639e939e /lib/xrdaction.php
parent2ed1e9b126baa3d09cb41b1c4ea4016ae4f89936 (diff)
Mark OembedAction, XrdAction, and (plugin) AutocompleteAction as read-only. Tweaked ApiStatusesShow and ApiTimelineUser to still claim read-only when hit with a HEAD request (usually link checkers or a precursor to a GET, and should be semantically equivalent to a GET without actually transferring data)
Diffstat (limited to 'lib/xrdaction.php')
-rw-r--r--lib/xrdaction.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/xrdaction.php b/lib/xrdaction.php
index 4377eab94..855ed1ea8 100644
--- a/lib/xrdaction.php
+++ b/lib/xrdaction.php
@@ -145,4 +145,16 @@ class XrdAction extends Action
return (substr($uri, 0, 5) == 'acct:');
}
+
+ /**
+ * Is this action read-only?
+ *
+ * @param array $args other arguments
+ *
+ * @return boolean is read only action?
+ */
+ function isReadOnly($args)
+ {
+ return true;
+ }
}