Fix #4230: Inconsistency between DText preview and DText renders of inline DText.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
class DtextPreviewsController < ApplicationController
|
||||
def create
|
||||
render :inline => "<%= format_text(params[:body]) %>"
|
||||
@inline = params[:inline].to_s.truthy?
|
||||
@disable_mentions = params[:disable_mentions].to_s.truthy?
|
||||
|
||||
render inline: "<%= format_text(params[:body], inline: @inline, disable_mentions: @disable_mentions) %>"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user