mastodon/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 Fix POST /api/v1/emails/confirmations not being available after sign-up (#17743) 2022-03-12 04:14:25 +01:00
featured_tags Add ability to follow hashtags (#18809) 2022-07-17 13:49:29 +02:00
filters Add ability to filter individual posts (#18945) 2022-08-25 04:27:47 +02:00
instances Change about page to be mounted in the web UI (#19345) 2022-10-13 14:42:37 +02:00
lists
polls
push use Notification::TYPES for api push subscription alerts (#18709) 2022-06-23 01:44:27 +02:00
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 Add ability to filter followed accounts' posts by language (#19095) 2022-09-20 23:51:21 +02:00
announcements_controller.rb
apps_controller.rb
blocks_controller.rb Change follow scope to be covered by read and write scopes in REST API (#17678) 2022-03-03 16:13:40 +01:00
bookmarks_controller.rb Fix 500 error when a bookmark or favorite has been reported and deleted (#18174) 2022-04-28 23:34:58 +02:00
conversations_controller.rb
custom_emojis_controller.rb
directories_controller.rb
domain_blocks_controller.rb Change follow scope to be covered by read and write scopes in REST API (#17678) 2022-03-03 16:13:40 +01:00
endorsements_controller.rb
favourites_controller.rb Fix 500 error when a bookmark or favorite has been reported and deleted (#18174) 2022-04-28 23:34:58 +02:00
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 Fix duplicate notifications being possible after poll expiration (#17697) 2022-03-04 01:06:33 +01:00
followed_tags_controller.rb Add ability to follow hashtags (#18809) 2022-07-17 13:49:29 +02:00
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 Allow editing media attachments for scheduled toots (#17690) 2022-03-03 16:13:58 +01:00
mutes_controller.rb Change follow scope to be covered by read and write scopes in REST API (#17678) 2022-03-03 16:13:40 +01:00
notifications_controller.rb Add types param to GET /api/v1/notifications in REST API (#17767) 2022-03-15 04:11:29 +01:00
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 Fix /api/v1/tags/:id route constraints (#18854) 2022-07-20 17:06:52 +02:00