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 GroupUser < ActiveRecord::Base
|
||||
belongs_to :group, counter_cache: "user_count"
|
||||
belongs_to :user
|
||||
@@ -10,6 +12,10 @@ class GroupUser < ActiveRecord::Base
|
||||
|
||||
after_save :grant_trust_level
|
||||
|
||||
def self.notification_levels
|
||||
NotificationLevels.all
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def set_primary_group
|
||||
|
||||
Reference in New Issue
Block a user