lucyparsons / OpenOversight

Police oversight and accountability through public data 👮
https://openoversight.com
GNU General Public License v3.0
240 stars 79 forks source link

Add content warnings for videos/links #1102

Closed sea-kelp closed 5 months ago

sea-kelp commented 5 months ago

Fixes issue

Fixes #493

Description of Changes

This change is cherry-picked from https://github.com/OrcaCollective/OpenOversight/pull/457

Adds content warnings to links and videos

Notes for Deployment

There's an alembic migration that will need to be run

Screenshots (if appropriate)

New checkbox "Include content warning?" which is checked by default per https://github.com/lucyparsons/OpenOversight/issues/493#issue-339263762 1

How links and videos will look when a content warning is added: 2

Tests and Linting

michplunkett commented 5 months ago

Take a look at the merged changes whenever you got time, @sea-kelp, and merge them if you're comfortable with them.