about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-25 02:54:28 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-25 02:54:28 +0100
commitca04002c933539a2ccefe227f6a6eecbb4c074c6 (patch)
tree1988ae4f3734d19afe665128a4a719d626e517a3
parentab94ad35048545b32be12c582a92df8ca048eaeb (diff)
Add content warning example to docs
-rw-r--r--docs/Extensions.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/Extensions.md b/docs/Extensions.md
index 372dfc24a..a082a777d 100644
--- a/docs/Extensions.md
+++ b/docs/Extensions.md
@@ -12,6 +12,6 @@ Some functionality in Mastodon required some additions to the protocols to enabl
 
 2. Statuses can be marked as containing sensitive (or not safe for work) media. This is symbolized by a `<category term="nsfw" />` on the Atom entry
 
-3. Statuses can have a content warning (used e.g. for warning about spoilers in the text). It is stored in the `warning` attribute on the `<content />` tag of the Atom entry
+3. Statuses can have a content warning (used e.g. for warning about spoilers in the text). It is stored in the `warning` attribute on the `<content />` tag of the Atom entry, e.g. `<content type="html" warning="This post talks about the ending to 6th sense">Lorem ipsum dolor sit amet</content>`
 
 4. Statuses that are intended to be listed publicly on e.g. "whole known network" or "public" timelines contain a `<link rel="mentioned" href="http://activityschema.org/collection/public" ostatus:object-type="http://activitystrea.ms/schema/1.0/collection"/>`. Conversely, statuses which do not contain that, are intended to be low key, unlisted