Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorIlyaaaaaaaaaaaaa Zhitomirskiy <ilya@joindiaspora.com>2011-07-20 05:17:08 +0400
committerRaphael Sofaer <raphael@joindiaspora.com>2011-07-22 05:23:33 +0400
commit537766d0d70ee26b5fce3a770062f15f66e0f790 (patch)
tree3b72724e78881d94e39d08322d350c7a4445c6cb /app
parent70be713b158b181b548ce1b35abca65cad7d4f2a (diff)
Started working on repost integration test
Diffstat (limited to 'app')
-rw-r--r--app/models/reshare.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/reshare.rb b/app/models/reshare.rb
index 3ea3f0439..8a9bed4a3 100644
--- a/app/models/reshare.rb
+++ b/app/models/reshare.rb
@@ -59,7 +59,7 @@ class Reshare < Post
end
def root_must_be_public
- if self.root.nil? || !self.root.public
+ if !self.root.public
errors[:base] << "you must reshare public posts"
return false
end