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
|
end
|
||||||
|
|
||||||
def parent
|
def parent
|
||||||
|
return nil unless self.target.present?
|
||||||
self.target.parent
|
self.target.parent
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ module Diaspora
|
||||||
|
|
||||||
# @return [String]
|
# @return [String]
|
||||||
def parent_guid
|
def parent_guid
|
||||||
|
return nil unless parent.present?
|
||||||
self.parent.guid
|
self.parent.guid
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue