about summary refs log tree commit diff
path: root/app/controllers/api/v1
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-22 11:25:59 +0100
committerGitHub <noreply@github.com>2022-11-22 11:25:59 +0100
commitbdc61d467d704a0fff358e46d2bf7acba9c9269e (patch)
treed8b6e5807bb722fc92087bc6c52679ad92e8e2b2 /app/controllers/api/v1
parente0e7a09cfed2b311f055522eea45caac0838d87a (diff)
parentff42233aaeed91f8c14da150c7241d3d0b72841f (diff)
Merge pull request #1966 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/controllers/api/v1')
-rw-r--r--app/controllers/api/v1/tags_controller.rb2
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