mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 10:33:43 +08:00
b9abd7dc9e
This feature can be enabled by choosing a destination for the `shared drafts category` site setting. * Staff members can create shared drafts, choosing a destination category for the topic when it is published. * Shared Drafts can be viewed in their category, or above the topic list for the destination category where it will end up. * When the shared draft is ready, it can be published to the appropriate category by clicking a button on the topic view. * When published, Drafts change their timestamps to the current time, and any edits to the original post are removed.
5 lines
86 B
Ruby
5 lines
86 B
Ruby
class SharedDraft < ActiveRecord::Base
|
|
belongs_to :topic
|
|
belongs_to :category
|
|
end
|