Filter statuses that mention blocked users
This commit is contained in:
parent
543d06971e
commit
e3ed212b85
2 changed files with 17 additions and 13 deletions
|
@ -66,12 +66,12 @@ class Account < ApplicationRecord
|
|||
|
||||
def unfollow!(other_account)
|
||||
follow = active_relationships.find_by(target_account: other_account)
|
||||
follow.destroy unless follow.nil?
|
||||
follow&.destroy
|
||||
end
|
||||
|
||||
def unblock!(other_account)
|
||||
block = block_relationships.find_by(target_account: other_account)
|
||||
block.destroy unless block.nil?
|
||||
block&.destroy
|
||||
end
|
||||
|
||||
def following?(other_account)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue