Specify id field in the query whose result is passed to unfriended_by
This commit is contained in:
parent
e84b25b3f5
commit
ad2d8f8b46
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ class User
|
|||
if object.type == 'Person' && object.signature_valid?
|
||||
|
||||
Rails.logger.info( "the person id is #{object.post_id} the friend found is #{friends.first(object.post_id)}")
|
||||
unfriended_by friends.first(object.post_id)
|
||||
unfriended_by friends.first(:id => object.post_id)
|
||||
|
||||
else
|
||||
object.perform self.id
|
||||
|
|
|
|||
Loading…
Reference in a new issue