-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
mentioned non-member users get notification in private content #4632
Comments
I think there is an issue related to this. Currently users only get mentioned if the user can access the content. I think we should discuss this further prior to change this behavior. In which case it makes sense that a users is informed about a mentioning in a content he can not access? |
Related:
I thought there was another issue discussing this, but unfortunately I did not find it. |
Actually, it's not about the decision of informing a non-member mentioned user or not, but about it doesn't have the same behavior in all cases in the current scenario. Imagine there is a public space and we have users: -x create a post, x mention w in its comment (no one gets notification), x reply that comment (w get notification of new comment now while w is not a member, and w didn't get notif for mentioning in parent comment) -x create a post, x mention w in its comment (no one gets notification), y reply that comment (x get notification) -x create a post, y mention w in its comment (x get notification), x reply that comment (w get a notification while it's not a member, y didn't get notification although is the owner of the parent comment) -x create a post, y mention w in its comment (x get notification), y reply that comment (x get a notification) -x create a post, y mention w in its comment (x get notification), z reply that comment (just x get a notification, not also y that is the owner of the parent comment) -x create a post, y mention w in its comment (x get notification), x create a new comment (w get a notification while it's a totally new comment, not reply to that comment, and also w is not a member) |
Could you write test cases to cover those issues in a PR and then we can discuss the right behavior. #3767 is related to the content subscription problem. If you need help with the tests, just let me know. Another case would be if the visibility of a content is changed, we should unsubscribe users who are not allowed to see the content. In the Issue I did not find someone suggested that we should not be able to mention users which are not allowed to see the content. I'am not sure if this is the right behavior since you may want to mention someone in an admin only space. |
I write some tests in PR to cover cases I described and also cases the visibility of content is changed.
In this issue and #3767, the problem is about the content subscription. I think it's a correct behavior to mention non-members in private content and add them to the content subscriber in the |
Ok, so the content follower list can contain users which are not allowed to see the content. We should add this to the php doc of the getter function and maybe add a flag to automatically filter out followers which are not allowed to see a content. As I understand there are the following cases:
|
Also, if the user membership state changes (mentioned member cancel his space membership, or mentioned non-member become a member) |
Maybe related. humhub/cfiles#147 |
What steps will reproduce the problem?
In private content of public space, if we mention a non-member user in a post or comment, that user doesn't receive any notification of it.
But after that, the user will receive notification for every comment on that post (which the user is mentioned in it or in its comments)
What is the expected result?
If the non-member user is mentioned in a private space, he/she should receive notification about it, if the scenario is to ignore notification for non-members, then the user should not receive other notifications of that posts.
Additional info
The text was updated successfully, but these errors were encountered: