add raw_message method to Reshare
This commit is contained in:
parent
0fb1bf5d4b
commit
dea21634a2
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue