You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app/controllers/api/v1/accounts
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>
3 years ago
..
credentials_controller.rb make it not return http 400 when passing and empty source argument (#12259) 6 years ago
familiar_followers_controller.rb Add `/api/v1/accounts/familiar_followers` to REST API (#17700) 3 years ago
featured_tags_controller.rb Use existing FeaturedTag serializer and delete AccountFeaturedTag serializer (#15415) 5 years ago
follower_accounts_controller.rb Change following and followers API to be accessible without being logged in (#18964) 3 years ago
following_accounts_controller.rb Change following and followers API to be accessible without being logged in (#18964) 3 years ago
identity_proofs_controller.rb Remove Keybase integration (#17045) 4 years ago
lists_controller.rb Change REST API to return empty data for suspended accounts (#14765) 5 years ago
lookup_controller.rb Fix error when looking handle with surrounding spaces (#18225) 3 years ago
notes_controller.rb Add user notes on accounts (#14148) 5 years ago
pins_controller.rb Make account endorsements idempotent (fix #19045) (#20118) 3 years ago
relationships_controller.rb Change REST API to return empty data for suspended accounts (#14765) 5 years ago
search_controller.rb Remove useless `respond_to` calls (#13208) 5 years ago
statuses_controller.rb Fix performance of account timelines (#17709) 3 years ago