Remove unfollowed hashtag posts from home feed (#26028)
This commit is contained in:
parent
f18618d7f9
commit
943f27f437
4 changed files with 81 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue