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

FIX: do not serialize status when profile is hidden #23946

Merged
merged 3 commits into from Oct 16, 2023

Conversation

jjaffeux
Copy link
Contributor

@jjaffeux jjaffeux commented Oct 16, 2023

Users can decide to hide their profile and presence. It seems more correct to also not return the status in this case.

@github-actions github-actions bot added the chat PRs which include a change to Chat plugin label Oct 16, 2023
jjaffeux and others added 2 commits October 16, 2023 17:42
Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
@jjaffeux
Copy link
Contributor Author

thanks @pmusaraj

@jjaffeux jjaffeux merged commit d1ef6ab into discourse:main Oct 16, 2023
17 checks passed
@jjaffeux jjaffeux deleted the chat/status-hidden-profile branch October 16, 2023 15:43
AndrewPrigorshnev added a commit that referenced this pull request Feb 26, 2024
…ence (#24300)

Users can hide their public profile and presence information by checking 
“Hide my public profile and presence features” on the 
`u/{username}/preferences/interface` page. In that case, we also don't 
want to return user status from the server.

This work has been started in #23946. 
The current PR fixes all the remaining places in Core.

Note that the actual fix is quite simple – a5802f4. 
But we had a fair amount of duplication in the code responsible for 
the user status serialization, so I had to dry that up first. The refactoring 
as well as adding some additional tests is the main part of this PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat PRs which include a change to Chat plugin
2 participants