Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2022-11-22 10:28:43 +01:00
5 changed files with 17 additions and 3 deletions

View File

@ -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