summaryrefslogtreecommitdiff
path: root/plugins/Autocomplete
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 /plugins/Autocomplete
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 'plugins/Autocomplete')
-rw-r--r--plugins/Autocomplete/autocomplete.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/Autocomplete/autocomplete.php b/plugins/Autocomplete/autocomplete.php
index c92002245..e15e95ec1 100644
--- a/plugins/Autocomplete/autocomplete.php
+++ b/plugins/Autocomplete/autocomplete.php
@@ -165,4 +165,16 @@ class AutocompleteAction extends Action
print json_encode($result) . "\n";
}
}
+
+ /**
+ * Is this action read-only?
+ *
+ * @param array $args other arguments
+ *
+ * @return boolean is read only action?
+ */
+ function isReadOnly($args)
+ {
+ return true;
+ }
}