1
0
puyopuyotetr.is/app/controllers/api
trwnh 89e1974f30
Make account endorsements idempotent (fix #19045) (#20118)
* Make account endorsements idempotent (fix #19045)

* Accept suggestion to use exists? instead of find_by + nil check

Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>

* fix logic (unless, not if)

* switch to using `find_or_create_by!`

Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
2022-11-08 16:39:15 +01:00
..
v1 Make account endorsements idempotent (fix #19045) (#20118) 2022-11-08 16:39:15 +01:00
v2 Change post-processing to be deferred only for large media types (#19617) 2022-11-01 15:27:58 +01:00
web Refactor formatter (#17828) 2022-03-26 02:53:34 +01:00
base_controller.rb Change AUTHORIZED_FETCH to not block unauthenticated REST API access (#19803) 2022-11-05 22:56:03 +01:00
oembed_controller.rb Fix OEmbed leaking information about existence of non-public statuses (#12930) 2020-01-24 00:20:51 +01:00