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:
@@ -1,3 +1,5 @@
|
||||
require_dependency 'notification_levels'
|
||||
|
||||
class TopicUser < ActiveRecord::Base
|
||||
belongs_to :user
|
||||
belongs_to :topic
|
||||
@@ -17,10 +19,7 @@ class TopicUser < ActiveRecord::Base
|
||||
|
||||
# Enums
|
||||
def notification_levels
|
||||
@notification_levels ||= Enum.new(muted: 0,
|
||||
regular: 1,
|
||||
tracking: 2,
|
||||
watching: 3)
|
||||
NotificationLevels.topic_levels
|
||||
end
|
||||
|
||||
def notification_reasons
|
||||
|
||||
Reference in New Issue
Block a user