0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 10:40:28 +01:00

simplify naming

Dieser Commit ist enthalten in:
Robert Barrow 2020-05-24 11:23:17 +01:00
Ursprung 2458525206
Commit 355d1abc54

Datei anzeigen

@ -135,7 +135,7 @@ class CustomWizard::Action
def watch_categories
watched_categories_map = CustomWizard::Mapper.new(
watched_categories = CustomWizard::Mapper.new(
inputs: action['categories'],
data: data,
user: user
@ -148,7 +148,7 @@ class CustomWizard::Action
).perform
Category.all.each do |category|
if watched_categories_map.include?(category.id.to_s)
if watched_categories.include?(category.id.to_s)
CategoryUser.set_notification_level_for_category(user, CategoryUser.notification_levels[:watching], category.id)
elsif mute_remainder
CategoryUser.set_notification_level_for_category(user, CategoryUser.notification_levels[:muted], category.id)