fix some cases where the parent is nil in relayable retractions

This commit is contained in:
Maxwell Salzberg 2011-10-07 13:45:20 -07:00
parent c85209a22c
commit 0da3fbcf66
2 changed files with 2 additions and 0 deletions

View file

@ -21,6 +21,7 @@ class RelayableRetraction < SignedRetraction
end
def parent
return nil unless self.target.present?
self.target.parent
end

View file

@ -27,6 +27,7 @@ module Diaspora
# @return [String]
def parent_guid
return nil unless parent.present?
self.parent.guid
end