summaryrefslogtreecommitdiff
path: root/actions/oembed.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 /actions/oembed.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 'actions/oembed.php')
-rw-r--r--actions/oembed.php11
1 files changed, 11 insertions, 0 deletions
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;
+ }
}