closes GitHub issue #16

This commit is contained in:
nilsding 2014-12-14 21:35:24 +01:00
parent ae5847af6a
commit c0c279e6d8
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class User < ActiveRecord::Base
# unfollows an user
def unfollow(target_user)
active_relationships.find_by(target: target_user).destroy
relationship = active_relationships.find_by(target: target_user).destroy
Notification.denotify target_user, relationship
# decrement counts