[openstreetmap/openstreetmap-website] Add user block api call (PR #4301)

Anton Khorev notifications at github.com
Fri Oct 20 11:56:04 UTC 2023


This lets block users by id, which helps in case they frequently change their username.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Test more block attributes in show call
  * Add user block api call
  * Decrease number of if statements in api capabilities class

-- File Changes --

    M app/abilities/api_capability.rb (21)
    M app/controllers/api/user_blocks_controller.rb (27)
    M config/locales/en.yml (1)
    M config/routes.rb (2)
    M lib/oauth.rb (2)
    M test/controllers/api/user_blocks_controller_test.rb (186)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list