WIP: [Sprint/QuietQuail](fix): Blog & media edit updated to new nsfw system #1936
Depends on engine!384
Summary
This changes first part encompasses a fix to the NSFW system, wherein even though the selector shows as blue, it does not respect the values in it without clicking it, so a user may believe they are posting something as NSFW, but in actuality the post would be untagged.
The other change, moves the future blogs to the mature blog system, to the NSFW blog system. When creating a new blog, values must also be respected as in the first part of this upgrade, however, when editing, existing values must be shown.
Testing
Blog
Example testing video - https://streamable.com/ps39o
- Post NSFW Post, give it a few random reasons, remember them.
- Post a blog - do not touch the selector
- Edit blog, check the selector - it should be the same as your last post.
- Change the NSFW tags
- Edit again and ensure the change stuck
- Check the changes are respected on the channel sidebar
- Post a non-NSFW blog post
- Edit it to be NSFW, enter edit mode again to check it 3. worked
- Make a normal post with different tags.
- Edit blog and check it ignores those tags, and has the correct ones for the blog.
- In one of the NSFW blogs activity posts on the feed, mark it as non-nsfw
- Check change propegates by clicking the blog, editing, checking nothing is checked
- Ensure the sidebar of the blog does not have the explicit overlay now.
- Edit it back to be NSFW in the activity.
- Check the change propegated in the same fashion.
- Ensure blogs in sidebar are flagged appropriately
Poster
Example testing video - https://streamable.com/3r8d2
- Make a non-nsfw post.
- Edit to be nsfw.
- Edit again to make sure the tags stuck.
- Remove NSFW from the activity, check the activity is no longer nsfw.
- Make a new NSFW post, remember the nsfw tags you placed on it.
- Nav to another page like wallet and back.
- Post, it should be NSFW.
- Make another post with a different config to change the nsfw selectors defaults.
- On the post in step 7, edit and check the nsfw values are correct.
Media
Example testing video - https://streamable.com/qokw4
- Post NSFW media (remember which nsfw reasons you selected).
- Make another random post with another configuration of NSFW reasons.
- Check the activity, edit it, it should show the reasons correctly, and not show the values of your last post.
- Edit it to not be NSFW, this should be respected
- Edit it back to being NSFW.
- Go to the media page for the activity (if you are seeing media modals, just reload the url in the url box).
- NSFW values should be respected (check via edit)
- Edit away the changes
- Check changes apply to the activity on the newsfeed.
- Go back onto the media page.
- Make it NSFW again.
- Check changes propagate.
Admin
Example testing video - https://streamable.com/v8hye
- Watch XHRs
- Visit channel
- Ensure no spam calls are made to moderation endpoints
- Ensure an admin can set a post on another user as NSFW
- Ensure an NSFW post shows the correct reasons initially, regardless of what the current state of the admins NSFW post box is.
added scoped labels
changed the description
marked as a Work In Progress
added scoped label and automatically removed label
mentioned in merge request engine!384
changed the description
added 2 commits
added scoped label and automatically removed label
unmarked as a Work In Progress
added 90 commits
-
be7434a2...a0d1737e - 87 commits from branch
master
- 7cb030ad - Merge branch 'master' of gitlab.com:minds/front into fix/blog-media-nsfw-update-1936
- aaf95d86 - Merge branch 'master' of gitlab.com:minds/front into fix/blog-media-nsfw-update-1936
- 76664e6c - Merge branch 'master' of gitlab.com:minds/front into fix/blog-media-nsfw-update-1936
Toggle commit list-
be7434a2...a0d1737e - 87 commits from branch
added scoped label and automatically removed label
marked as a Work In Progress
changed the description
changed the description
added 2 commits
changed the description
- Developer
This definitely needs testing with live data, so we can see how old blogs marked as mature will react to the changes.