Remove unfollowed hashtag posts from home feed (#26028)

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

No files matched your search

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