chinwagsocial/app/controllers/api/v1
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
..
accounts Make account endorsements idempotent (fix #19045) (#20118) 2022-11-08 16:39:15 +01:00
admin Fix admin APIs returning deleted object instead of empty object upon delete (#19479) 2022-10-30 02:43:57 +02:00
announcements
apps
crypto
emails
featured_tags
filters
instances Change about page to be mounted in the web UI (#19345) 2022-10-13 14:42:37 +02:00
lists
polls
push
statuses Add user content translations with configurable backends (#19218) 2022-09-23 23:00:12 +02:00
timelines Remove language filtering from hashtag timelines (#19563) 2022-10-30 21:29:23 +01:00
trends Add support for language preferences for trending statuses and links (#18288) 2022-10-08 16:45:40 +02:00
accounts_controller.rb
announcements_controller.rb
apps_controller.rb
blocks_controller.rb
bookmarks_controller.rb
conversations_controller.rb
custom_emojis_controller.rb
directories_controller.rb
domain_blocks_controller.rb
endorsements_controller.rb
favourites_controller.rb
featured_tags_controller.rb Change featured tag updates to add/remove activity (#19409) 2022-10-22 18:30:55 +02:00
filters_controller.rb Fix crash in legacy filter creation controller (#19878) 2022-11-07 03:38:53 +01:00
follow_requests_controller.rb
followed_tags_controller.rb
instances_controller.rb Add server banner to web app, add GET /api/v2/instance to REST API (#19294) 2022-10-05 03:47:56 +02:00
lists_controller.rb Fix uncaught 500 error on invalid replies_policy (Fix #19097) (#20126) 2022-11-08 16:37:28 +01:00
markers_controller.rb
media_controller.rb
mutes_controller.rb
notifications_controller.rb
polls_controller.rb
preferences_controller.rb
reports_controller.rb
scheduled_statuses_controller.rb
statuses_controller.rb Fix reblogs being discarded after the reblogged status (#19731) 2022-11-04 16:31:44 +01:00
streaming_controller.rb
suggestions_controller.rb
tags_controller.rb