We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d022975 commit e239fc3Copy full SHA for e239fc3
app/models/account.rb
@@ -36,7 +36,8 @@ def follow!(other_account)
36
end
37
38
def unfollow!(other_account)
39
- self.active_relationships.find_by(target_account: other_account).destroy
+ follow = self.active_relationships.find_by(target_account: other_account)
40
+ follow.destroy unless follow.nil?
41
42
43
def following?(other_account)
0 commit comments