diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-22 10:28:43 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-11-22 10:28:43 +0100 |
commit | ff42233aaeed91f8c14da150c7241d3d0b72841f (patch) | |
tree | d8b6e5807bb722fc92087bc6c52679ad92e8e2b2 /app/controllers/api/v1 | |
parent | e0e7a09cfed2b311f055522eea45caac0838d87a (diff) | |
parent | f343ed42ff1d288989f3a577362cc672e4cae437 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/controllers/api/v1')
-rw-r--r-- | app/controllers/api/v1/tags_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/tags_controller.rb b/app/controllers/api/v1/tags_controller.rb index 0966ee469..272362c31 100644 --- a/app/controllers/api/v1/tags_controller.rb +++ b/app/controllers/api/v1/tags_controller.rb @@ -12,7 +12,7 @@ class Api::V1::TagsController < Api::BaseController end def follow - TagFollow.first_or_create!(tag: @tag, account: current_account, rate_limit: true) + TagFollow.create_with(rate_limit: true).find_or_create_by!(tag: @tag, account: current_account) render json: @tag, serializer: REST::TagSerializer end |