add raw_message method to Reshare

This commit is contained in:
danielgrippi 2012-01-06 17:05:09 -08:00 committed by Dennis Collinson
parent 0fb1bf5d4b
commit dea21634a2

View file

@ -29,6 +29,10 @@ class Reshare < Post
self.root.author.diaspora_handle
end
def raw_message
self.root ? root.raw_message : ""
end
def receive(recipient, sender)
local_reshare = Reshare.where(:guid => self.guid).first
if local_reshare && local_reshare.root.author_id == recipient.person.id