[openstreetmap/openstreetmap-website] Add UserMute to control private message visibility (PR #4284)
Gregory Igelmund
notifications at github.com
Fri Oct 27 12:59:35 UTC 2023
> Does this already handle the API part? We have this part here
The code for the user serialisation is here https://github.com/openstreetmap/openstreetmap-website/blob/0844024c8e68ae0031e143d6094793f0aa32bc22/app/views/api/users/_user.json.jbuilder#L59-L63
The `muted` Messages are excluded here and not mentioned explicitly, so right know it behaves identical to the UI.
If API consumers want/need access to the `muted` Message count, one could add it the the serialised user object, but I didn't add it without having a use case here.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4284#issuecomment-1782876125
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4284/c1782876125 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231027/cbe0e405/attachment.htm>
More information about the rails-dev
mailing list