Skip to content
Extraits de code Groupes Projets
Valider 0da3fbcf rédigé par Maxwell Salzberg's avatar Maxwell Salzberg
Parcourir les fichiers

fix some cases where the parent is nil in relayable retractions

parent c85209a2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -21,6 +21,7 @@ class RelayableRetraction < SignedRetraction ...@@ -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 ...@@ -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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter