mirror of
https://github.com/mastodon/mastodon.git
synced 2025-07-15 16:58:14 +00:00
Merge 0ece72dab0
into 5619099564
This commit is contained in:
commit
1a26f7bb90
|
@ -92,7 +92,7 @@ const StatusContent = React.createClass({
|
|||
const { status } = this.props;
|
||||
const { hidden } = this.state;
|
||||
|
||||
const content = { __html: emojify(status.get('content')).replace(/\n/g, '') };
|
||||
const content = { __html: emojify(status.get('content')) };
|
||||
const spoilerContent = { __html: emojify(escapeTextContentForBrowser(status.get('spoiler_text', ''))) };
|
||||
const directionStyle = { direction: 'ltr' };
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ class Formatter
|
|||
|
||||
html = status.text
|
||||
html = encode(html)
|
||||
html = simple_format(html, {}, sanitize: false)
|
||||
html = link_urls(html)
|
||||
html = link_mentions(html, status.mentions)
|
||||
html = link_hashtags(html)
|
||||
|
|
|
@ -62,6 +62,7 @@ module Mastodon
|
|||
config.middleware.use Rack::Attack
|
||||
config.middleware.use Rack::Deflater
|
||||
|
||||
config.browserify_rails.source_map_environments << 'development'
|
||||
config.browserify_rails.commandline_options = '--transform [ babelify --presets [ es2015 react ] ] --extension=".jsx"'
|
||||
|
||||
config.to_prepare do
|
||||
|
|
Loading…
Reference in New Issue
Block a user