delegate frame_name in reshares
This commit is contained in:
parent
4fdb6bd9b7
commit
a46e16cbcf
1 changed files with 4 additions and 0 deletions
|
|
@ -45,6 +45,10 @@ class Reshare < Post
|
|||
self.root ? root.photos : nil
|
||||
end
|
||||
|
||||
def frame_name
|
||||
self.root ? root.frame_name : nil
|
||||
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