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:
Ursprung
2458525206
Commit
355d1abc54
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -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)
|
||||
|
|
Laden …
In neuem Issue referenzieren