[openstreetmap/openstreetmap-website] Show blocked api response when interacting with notes (PR #4462)

Anton Khorev notifications at github.com
Sun Jan 7 16:27:54 UTC 2024


Fixes https://github.com/openstreetmap/openstreetmap-website/issues/2611.

If the user is blocked, they'll get a warning when trying to interact with a note.

Similar functionality for changeset commenting already exists.

![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/32c29af0-91b4-4e34-92e3-e702d4e153fc)

![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/c2423d05-4ae7-47a6-bed6-2df9d3af59ec)

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4462

-- Commit Summary --

  * Show blocked api response when commenting notes
  * Show blocked api response when reopening notes

-- File Changes --

    M app/assets/javascripts/index/note.js (26)
    M app/views/notes/show.html.erb (4)
    M test/system/note_comments_test.rb (66)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4462.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4462.diff

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

Message ID: <openstreetmap/openstreetmap-website/pull/4462 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240107/6a7dfeca/attachment.htm>


More information about the rails-dev mailing list