0
0
Fork 0

Fix when unfollow a tag, my post also disappears from the home timeline (#27391)

This commit is contained in:
KMY(雪あすか) 2023-10-13 18:15:47 +09:00 committed by GitHub
parent 773d25e8df
commit 45bdd60f3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View file

@ -192,6 +192,7 @@ class FeedManager
# also tagged with another followed hashtag or from a followed user
scope = from_tag.statuses
.where(id: timeline_status_ids)
.where.not(account: into_account)
.where.not(account: into_account.following)
.tagged_with_none(TagFollow.where(account: into_account).pluck(:tag_id))