Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +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
|
def watch_categories
|
||||||
|
|
||||||
watched_categories_map = CustomWizard::Mapper.new(
|
watched_categories = CustomWizard::Mapper.new(
|
||||||
inputs: action['categories'],
|
inputs: action['categories'],
|
||||||
data: data,
|
data: data,
|
||||||
user: user
|
user: user
|
||||||
|
@ -148,7 +148,7 @@ class CustomWizard::Action
|
||||||
).perform
|
).perform
|
||||||
|
|
||||||
Category.all.each do |category|
|
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)
|
CategoryUser.set_notification_level_for_category(user, CategoryUser.notification_levels[:watching], category.id)
|
||||||
elsif mute_remainder
|
elsif mute_remainder
|
||||||
CategoryUser.set_notification_level_for_category(user, CategoryUser.notification_levels[:muted], category.id)
|
CategoryUser.set_notification_level_for_category(user, CategoryUser.notification_levels[:muted], category.id)
|
||||||
|
|
Laden …
In neuem Issue referenzieren