0
0
Fork 0

Filter statuses that mention blocked users

This commit is contained in:
Eugen Rochko 2016-11-25 12:35:21 +01:00
parent 543d06971e
commit e3ed212b85
2 changed files with 17 additions and 13 deletions

View file

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