Skip to content

[Sprint/VacantViper](hotfix/staging): Quick fix to switch mature flag check to is_mature.

Ben requested to merge hotfix/mature-channel-overlay into master

Summary

Closes #2390 (closed)

Recent overlay change !697 (diffs) Is checking for the mature flag, not the is_mature flag. mature flag is set by the "see mature content" checkbox in settings.

Steps to test

  1. In one browser log into the admin account.
  2. In another browser create a new account or use an existing one with no NSFW or mature flags set. (a2)
  3. In the channel dropdown of that user make a users channel nsfw for Pornography.
  4. Reload profile in a window of a seperate browser.
  5. You should see the overlay, refresh and check it has stuck properly.
  6. Unset NSFW, then click set as explicit (this sets is_mature)
  7. Refresh the channel.
  8. Mature content overlay should show.

Estimated Regression Scope

Same as the previous card, an issue would likely manifest wherein the overlay is shown at inappropriate times. Very unlikely; the channel could break altogether if an error is thrown inside of the overlay.

Edited by Ben

Merge request reports

Loading