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

[ticket/13015] Allow adding multiple notifications per user about the same item #2910

Closed
wants to merge 1 commit into from

Conversation

rxu
Copy link
Contributor

@rxu rxu commented Aug 26, 2014

It is impossible to send notification to user about item user already has been
notified. The limitation is hardcoded in notifications manager class.
To allow adding multiple notifications per user about the same item,
move the limitation to the notification type class to be able to set
corresponding notifications behavior on per-type notification basis.

PHPBB3-13015.

… same item

it is impossible to send notification to user about item user already has been
notified. The limitation is hardcoded in notifications manager class.
To allow adding multiple notifications per user about the same item,
move the limitation to the notification type class to be able to set
corresponding notifications behavior on per-type notification basis.

PHPBB3-13015
@Nicofuma
Copy link
Member

Why do you want to notify the user many times for the same item ? You can't edit the previous notification to add the information (like does the quote notification) ?

@rxu
Copy link
Contributor Author

rxu commented Aug 26, 2014

Imagine that user gets several tens of "thanks" for the same post_id (which is item_id). How would it look like if I add information to previous notification?

@Nicofuma
Copy link
Member

IIRC the quote notification display the name until a given limit and then only display the number of quote.
And in this case: do you want to have to mark read tens of notifications? If you have tens of notifications for only one item it could hide the notification for the other things (and if you are like me, if you have 3x time the same notifications you are going to use the button "mark all read"....)

@rxu
Copy link
Contributor Author

rxu commented Aug 26, 2014

Makes sense. I think I'll try the alternative to update notification with the new time and additional user names thanked for the post. Thanks.
Close the ticket and the PR then?

@Nicofuma Nicofuma closed this Aug 26, 2014
@EXreaction
Copy link
Contributor

The quote notification is a notification based off of the post id where the user was quoted, so there it makes sense to edit it. I believe new notifications should be created for a given user if that given user has no unread notifications for the item.

Think of the following timeline:
Topic A is created
User Y and user Z subscribe to the topic
Post B is created on topic A (notifications sent to user Y and Z)
User Y visits the post (marks their notification read)
Post C is created on topic A (new notification sent to user Y; previous notification for user Z updated)

Is this how notifications still work for all notification types?

@Nicofuma
Copy link
Member

Nicofuma commented Sep 3, 2014

It's exactly what is done by the bookmark notification yes.

@Nicofuma
Copy link
Member

Nicofuma commented Sep 3, 2014

For the others notifications I'm not sure that it is possible to try to send 2 notifications for the same item (moderation queue: you are in the queue or not, you can't be twice in the queue; report: you can't report a post already reported; pm; group: you can't send more than one request for the same group...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants