[openstreetmap/openstreetmap-website] Add UserMute to control private message visibility (PR #4284)

Tobias notifications at github.com
Fri Oct 27 12:54:00 UTC 2023


@grekko Does this already handle the API part? We have this part here https://wiki.openstreetmap.org/wiki/API_v0.6#Details_of_the_logged-in_user:_GET_/api/0.6/user/details

I think, the easiest would be to change the queries for `<received count="1" unread="0"/>` to only include messages by unmuted users. However, I wonder if we should also add the full count just to give the API access to all the parts that the UI has as well. Something like `<received count="1" unread="0"/><received_mute count="1" unread="0"/>`

I would both not consider this a breaking change of the API. Changing the way the data is caculated is in line with how the new UI behaves. And adding something does not break (a well build api consumer).

(Disclaimer: I only did a quick scan of the files-list to check if this was solved already, sorry if it was…)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4284#issuecomment-1782867932
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4284/c1782867932 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231027/501f95e0/attachment.htm>


More information about the rails-dev mailing list