mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 00:20:54 +08:00
Revert "Revert "FEATURE: Can create warnings for users via PM""
This reverts commit 1c7559380c145136726028ae9f2aeea6f351eb78.
This commit is contained in:
@ -100,6 +100,7 @@ class Topic < ActiveRecord::Base
|
||||
has_many :invites, through: :topic_invites, source: :invite
|
||||
|
||||
has_many :revisions, foreign_key: :topic_id, class_name: 'TopicRevision'
|
||||
has_one :warning
|
||||
|
||||
# When we want to temporarily attach some data to a forum topic (usually before serialization)
|
||||
attr_accessor :user_data
|
||||
|
Reference in New Issue
Block a user