FIX: Previous fix comitted the wrong thing and was broken :(

This commit is contained in:
Robin Ward 2020-08-04 13:46:26 -04:00
parent 6da7a97eee
commit a1ec711373
1 changed files with 2 additions and 2 deletions

View File

@ -514,8 +514,8 @@ class Topic < ActiveRecord::Base
if SiteSetting.digest_suppress_categories.present? if SiteSetting.digest_suppress_categories.present?
remove_category_ids += SiteSetting.digest_suppress_categories.split("|").map(&:to_i) remove_category_ids += SiteSetting.digest_suppress_categories.split("|").map(&:to_i)
end end
if SiteSetting.shared_drafts_category.present? if SiteSetting.shared_drafts_enabled?
remove_category_ids << SiteSetting.shared_drafts_enabled? remove_category_ids << SiteSetting.shared_drafts_category
end end
if remove_category_ids.present? if remove_category_ids.present?
remove_category_ids.uniq! remove_category_ids.uniq!