delegate frame_name in reshares

This commit is contained in:
danielgrippi 2012-05-09 16:36:44 -07:00
parent 4fdb6bd9b7
commit a46e16cbcf

View file

@ -45,6 +45,10 @@ class Reshare < Post
self.root ? root.photos : nil self.root ? root.photos : nil
end end
def frame_name
self.root ? root.frame_name : nil
end
def receive(recipient, sender) def receive(recipient, sender)
local_reshare = Reshare.where(:guid => self.guid).first local_reshare = Reshare.where(:guid => self.guid).first
if local_reshare && local_reshare.root.author_id == recipient.person.id if local_reshare && local_reshare.root.author_id == recipient.person.id