fix some cases where the parent is nil in relayable retractions
This commit is contained in:
parent
c85209a22c
commit
0da3fbcf66
2 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ class RelayableRetraction < SignedRetraction
|
|||
end
|
||||
|
||||
def parent
|
||||
return nil unless self.target.present?
|
||||
self.target.parent
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ module Diaspora
|
|||
|
||||
# @return [String]
|
||||
def parent_guid
|
||||
return nil unless parent.present?
|
||||
self.parent.guid
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue