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

Fixes to user filters on active user sidebar and people pages #773

Merged
merged 9 commits into from
May 15, 2024

Conversation

e-five256
Copy link
Member

@e-five256 e-five256 commented May 11, 2024

This ended up being a few different things. I started making some of the changes as a separate PR but since all the code and views are very similar it was a bit difficult to test separately


This makes some changes to what users can be shown as Active Users in the sidebar or Local/Federated Users on the People pages in and out of magazines

Mainly noticed that suspended users still showed up in active users on the sidebar. When I went to fix this and couldn't get any of my users to show up at all, realized it was because they didn't have About descriptions set and that was still required for the sidebar and inside magazine people pages


  • Fix user user.visibility not being filtered for visible only
    • On PeopleFrontController (/people)
    • On MagazinePeopleFrontController (/m/<mag>/people)
    • On ActiveUserComponent (sidebar)
  • Remove user "About" requirement. This matches the change that happened to PeopleFrontController
    • On MagazinePeopleFrontController (/m/<mag>/people)
    • On ActiveUserComponent (sidebar)
  • Remove user "Avatar" requirement. This matches the change that happened to PeopleFrontController
    • On MagazinePeopleFrontController (/m/<mag>/people)
    • NOT on ActiveUserComponent (sidebar), as the component is only avatars it remains required to show users there
  • Fix user.isDeleted not being filtered (From Show users without magazine about hide deleted users #777)
    • On AP events
    • On AJAX user suggestions (not quite sure this is actually used, can't find where this route is ever surfaced)
    • On ActiveUserComponent (sidebar)
    • On MagazinePeopleFrontController (/m/<mag>/people)
  • Rename findPeople() -> findUsersForMagazine() (From Show users without magazine about hide deleted users #777)

@e-five256 e-five256 added the bug Something isn't working label May 11, 2024
@e-five256 e-five256 marked this pull request as draft May 11, 2024 00:28
@e-five256

This comment was marked as outdated.

remove about requirements from magazine people front calls
remove avatar requirement from magazine people front calls, kept for active user component
@e-five256 e-five256 changed the title Fix active user component not considering visibility Fixes to user filters on active user sidebar and people pages May 12, 2024
@e-five256 e-five256 marked this pull request as ready for review May 13, 2024 23:17
@e-five256 e-five256 merged commit c0a65e1 into main May 15, 2024
7 checks passed
@e-five256 e-five256 deleted the e5/fix-active-visibility branch May 15, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant