diff options
Diffstat (limited to 'app/models/reshare.rb')
-rw-r--r-- | app/models/reshare.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/models/reshare.rb b/app/models/reshare.rb index ecbd64971..d3e5115d7 100644 --- a/app/models/reshare.rb +++ b/app/models/reshare.rb @@ -86,9 +86,6 @@ class Reshare < Post private def root_must_be_public - if self.root && !self.root.public - errors[:base] << "Only posts which are public may be reshared." - return false - end + errors.add(:base, "Only posts which are public may be reshared.") if root && !root.public end end |