Remove unfollowed hashtag posts from home feed (#26028)

This commit is contained in:
Claire
2023-07-17 13:56:28 +02:00
committed by GitHub
parent f18618d7f9
commit 943f27f437
4 changed files with 81 additions and 0 deletions

View File

@ -19,6 +19,7 @@ class Api::V1::TagsController < Api::BaseController
def unfollow
TagFollow.find_by(account: current_account, tag: @tag)&.destroy!
TagUnmergeWorker.perform_async(@tag.id, current_account.id)
render json: @tag, serializer: REST::TagSerializer
end