mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
FEATURE: Allow Markdown in post notices. (#7864)
This commit is contained in:
@ -488,7 +488,7 @@ class PostsController < ApplicationController
|
||||
|
||||
if params[:notice].present?
|
||||
post.custom_fields["notice_type"] = Post.notices[:custom]
|
||||
post.custom_fields["notice_args"] = params[:notice]
|
||||
post.custom_fields["notice_args"] = PrettyText.cook(params[:notice], features: { onebox: false })
|
||||
post.save_custom_fields
|
||||
else
|
||||
post.delete_post_notices
|
||||
|
Reference in New Issue
Block a user