Skip to content

Content Warnings: handle display on the site #1361

@jeherve

Description

@jeherve

What

This is a follow-up to #900.

Now that we handle content warnings in the ActivityPub representation of posts, I think it would be nice to add support to hide that content on the site itself.

Why

It's nice to be able to hide content from posts on the Fediverse with a simple option in the post editor. Folks then see the content hidden behind a title in their Fediverse client of choice. However, if their client sends them to see the full post on the site, there will not be any content warning there ; the content will be displayed as is.

How

In order to make things as simple and easy to maintain as possible, maybe we could leverage the Details block from core:
https://wordpress.org/documentation/article/details-block/

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions