mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: Whisper posts
This commit is contained in:
@ -465,6 +465,10 @@ class PostsController < ApplicationController
|
||||
result[:is_warning] = false
|
||||
end
|
||||
|
||||
if SiteSetting.enable_whispers? && params[:whisper] == "true"
|
||||
result[:post_type] = Post.types[:whisper]
|
||||
end
|
||||
|
||||
PostRevisor.tracked_topic_fields.each_key do |f|
|
||||
params.permit(f => [])
|
||||
result[f] = params[f] if params.has_key?(f)
|
||||
|
Reference in New Issue
Block a user