Skip to content

[Front] Show NSFW overlay if entity ownerObj is an NSFW user. front#5658

Ben requested to merge fix/nsfw-reminds-front-5658 into master

Ticket(s) / Related Merge Requests

Summary of Changes

Hydrate ownerObjs on export meaning that up to date NSFW tags are provided for ownerObjs.

Testing Considerations

Long pass

  1. Make posts of various kinds without NSFW
  2. Make posts of various kinds with NSFW
  3. Log in as admin and make the posting channel NSFW for Nudity
  4. Log in as another channel, and remind AND quote the content from the third
  5. Check from the reminding channel, and other channels that the mask is shown appropriately for all content.

Short pass

Do the above, but instead of steps 1 to 3, remind content from /nsfwuser's channel.

Deployment Considerations

Standard deployment, feat flag is front-5658-owner-hydration

Regression Scope

Quite a wide scope because this happens on export of most entities. Could have performance implications which is why its gated behind a feature flag.

Platform Affected (web, mobile, etc)

All

Developer Testing Completed

Manual, specs where possible.

Screenshots / Screen Recording

https://streamable.com/5y9aj6

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 Ben

Merge request reports