Skip to content

Commit

Permalink
Fixed bug which caused spam messages to still be visible on main site
Browse files Browse the repository at this point in the history
  • Loading branch information
scott committed Jan 12, 2016
1 parent 3c18678 commit d164ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/topic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class Topic < ActiveRecord::Base
scope :front, -> { limit(6) }

# provided both public and private instead of one method, for code readability
scope :isprivate, -> { where("current_status <> 'Spam'").where(private: true)}
scope :ispublic, -> { where("current_status <> 'Spam'").where(private: false)}
scope :isprivate, -> { where("current_status <> 'spam'").where(private: true)}
scope :ispublic, -> { where("current_status <> 'spam'").where(private: false)}

# may want to get rid of this filter:
# before_save :check_for_private
Expand Down

0 comments on commit d164ff0

Please sign in to comment.