For GNU Social, give a user option to hide content that has a #NSFW hashtag.
Go to file
Moon Man 616f4c1484 Initial commit 2016-07-17 21:42:38 -07:00
actions Initial commit 2016-07-17 21:42:38 -07:00
img Initial commit 2016-07-17 21:42:38 -07:00
js Initial commit 2016-07-17 21:42:38 -07:00
LICENSE Initial commit 2016-07-17 21:42:38 -07:00
README.md Initial commit 2016-07-17 21:42:38 -07:00
SensitiveContentPlugin.php Initial commit 2016-07-17 21:42:38 -07:00

README.md

"Sensitive" Content Plugin for GNU Social

About

Create user option to allow a user to hide #NSFW-hashtagged notices behind a blocker image until clicked.

Works for both vanilla GNUSocial and with the Qvitter plugin.

Install

  • Move the project directory to ${GNU_SOCIAL}/plugins
  • Add addPlugin('SensitiveContent'); to your config.php

if you want to customize the blocker image, add a line to your config.php:

$config['site']['sensitivecontent']['blockerimage'] = "/path/to/image.jpg";

License

GNU Affero License

Thanks

Thanks in particular to Hannes and Qvitter because looking at his code helped me a lot.

A tiny bit of content was taken from Qvitter to enhance Qvitter with this funcitonality.