From 6c671141982c5837a2e5bf1e90de389c728d5dee Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 14 Dec 2010 16:14:15 -0800 Subject: 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) --- actions/oembed.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'actions/oembed.php') diff --git a/actions/oembed.php b/actions/oembed.php index 09d68a446..bef707f92 100644 --- a/actions/oembed.php +++ b/actions/oembed.php @@ -215,4 +215,15 @@ class OembedAction extends Action return; } + /** + * Is this action read-only? + * + * @param array $args other arguments + * + * @return boolean is read only action? + */ + function isReadOnly($args) + { + return true; + } } -- cgit v1.2.3-54-g00ecf