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
diff options
context:
space:
mode:
authorMaxwell Salzberg <maxwell@joindiaspora.com>2011-10-16 09:11:23 +0400
committerMaxwell Salzberg <maxwell@joindiaspora.com>2011-10-16 09:11:23 +0400
commit58d496e1461bb8d711cc6cef0b3cb5280d45365b (patch)
treea75d43f4eae7d2442c93fa752b6b30461e4f189b /lib/stream/base.rb
parente1aa709c85bab67dce6f1ba8515abb7eb88de525 (diff)
MS SM WIP
Diffstat (limited to 'lib/stream/base.rb')
-rw-r--r--lib/stream/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stream/base.rb b/lib/stream/base.rb
index 81f78e39e..5717ea329 100644
--- a/lib/stream/base.rb
+++ b/lib/stream/base.rb
@@ -120,7 +120,7 @@ class Stream::Base
def post_is_from_contact?(post)
@can_comment_cache ||= {}
@can_comment_cache[post.id] ||= contacts_in_stream.find{|contact| contact.person_id == post.author.id}.present?
- @can_comment_cache[post.id] ||= user.person.id == post.author.id
+ @can_comment_cache[post.id] ||= (user.person.id == post.author.id)
@can_comment_cache[post.id]
end
end