Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(hub): add support for content warnings #2952

Merged

Conversation

wescopeland
Copy link
Member

@wescopeland wescopeland commented Dec 19, 2024

On deploy, set the "[Theme - Mature]" game_set to have mature content.


This PR adds support for flagging any hub as having a "content warning". If a hub is flagged as having a content warning, viewing any games in the hub and/or the hub itself will display a content/age gate.

In the management app, there is a new toggle on the HubResource, which can be set by admins and staff devs:

Screenshot 2024-12-18 at 7 43 14 PM

When set, viewing the hub exhibits a new behavior:

Brave.Browser.mp4

gameInfo.blade.php has been adjusted to use this new flag rather than the hardcoded "[Theme - Mature]" legacy hub.

@wescopeland wescopeland added deployment/sql Includes SQL that needs to be run before/after deployment status/stacked This PR is stacked on top of another PR. labels Dec 19, 2024
@wescopeland wescopeland requested a review from a team December 19, 2024 00:46
@wescopeland wescopeland removed the status/stacked This PR is stacked on top of another PR. label Dec 21, 2024
@wescopeland wescopeland merged commit def5b3d into RetroAchievements:master Dec 30, 2024
8 checks passed
@wescopeland wescopeland deleted the hubs-content-warnings branch December 30, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment/sql Includes SQL that needs to be run before/after deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants