Skip to content

Front - tenant nsfw toggle minds#4547

Olivia Madrid requested to merge feat/tenant-nsfw-toggle-m4547 into master

Ticket(s) / Related Merge Requests

minds#4547 (closed)

Summary of Changes

  • Add nsfw toggle to tenant admin console > moderation tab
  • If toggle is OFF, remove "add explicit"-type options from the UI (in composer, comments, search result settings, group settings menu for admins)

Assumptions:

  • We still want users to be able to report nsfw content if they click to 'report' a post/comment, etc.
  • If a post/comment has been marked nsfw, and then the tenant admin decides to disable nsfw, the post/comment will still be covered by the nsfw overlay

Testing Considerations

Tenant admin console, comments, composer, search result settings.

!!! Uncovered a fairly unsettling bug in the configsService get() function -- when a value exists and is false, it was returning null (instead of false)... Now it returns false. I don't know the extent of ramifications of the fix but it seems like the function was behaving counterintuitively.

Deployment Considerations

Regression Scope

Nsfw self-reporting tools

Platform Affected (web, mobile, etc)

Web

Developer Testing Completed

See below

Screenshots / Screen Recording

image

image

image

image

Does this impact

  • Localization
  • Dark/light mode
  • Guest mode

Definition of Done Checklist

  • The Acceptance Criteria has been met
  • Code is tested: Testing includes unit/spec, E2E/automated and manual testing
  • Merge requests description has been filled out
Edited by Olivia Madrid

Merge request reports