mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Server side code for Watching First Post Only
This commit is contained in:
16
lib/notification_levels.rb
Normal file
16
lib/notification_levels.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
module NotificationLevels
|
||||
def self.all
|
||||
@all_levels ||= Enum.new(muted: 0,
|
||||
regular: 1,
|
||||
tracking: 2,
|
||||
watching: 3,
|
||||
watching_first_post: 4)
|
||||
end
|
||||
|
||||
def self.topic_levels
|
||||
@topic_levels ||= Enum.new(muted: 0,
|
||||
regular: 1,
|
||||
tracking: 2,
|
||||
watching: 3)
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user