Take out useless line in Reshare#receive

This commit is contained in:
Raphael Sofaer 2011-08-11 14:42:30 -07:00
parent 08f12ee348
commit 78a637f251

View file

@ -20,12 +20,9 @@ class Reshare < Post
def receive(recipient, sender)
local_reshare = Reshare.where(:guid => self.guid).first
if local_reshare && local_reshare.root.author_id == recipient.person.id
local_reshare.root.reshares << local_reshare
if recipient.contact_for(sender)
local_reshare.receive(recipient, sender)
end
else
super(recipient, sender)
end