Fix: #703 NGワード、センシティブワード「無関係なフォロワーへのメンション」が、自分自身へのメンションにも適用される (#704)

This commit is contained in:
KMY(雪あすか) 2024-04-09 09:02:50 +09:00 committed by KMY
parent 13e5eed811
commit e53c6b13eb
4 changed files with 35 additions and 6 deletions

View file

@ -186,6 +186,10 @@ module Account::Interactions
active_relationships.exists?(target_account: other_account)
end
def following_or_self?(other_account)
id == other_account.id || following?(other_account)
end
def following_anyone?
active_relationships.exists?
end