More debugging
This commit is contained in:
		| @@ -45,6 +45,8 @@ const Status = React.createClass({ | |||||||
|  |  | ||||||
|     var { status, ...other } = this.props; |     var { status, ...other } = this.props; | ||||||
|  |  | ||||||
|  |     console.log(status, this.props); | ||||||
|  |  | ||||||
|     if (status.get('reblog') !== null) { |     if (status.get('reblog') !== null) { | ||||||
|       let displayName = status.getIn(['account', 'display_name']); |       let displayName = status.getIn(['account', 'display_name']); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -129,7 +129,7 @@ function updateTimeline(state, timeline, status) { | |||||||
|  |  | ||||||
|     if (reblogOfId !== null) { |     if (reblogOfId !== null) { | ||||||
|       const otherReblogs = state.get('statuses').filter(item => item.get('reblog') === reblogOfId).map((_, itemId) => itemId); |       const otherReblogs = state.get('statuses').filter(item => item.get('reblog') === reblogOfId).map((_, itemId) => itemId); | ||||||
|       list = list.filterNot(itemId => itemId === reblogOfId || otherReblogs.includes(itemId)); |       list = list.filterNot(itemId => (itemId === reblogOfId || otherReblogs.includes(itemId))); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     return list.unshift(status.get('id')); |     return list.unshift(status.get('id')); | ||||||
|   | |||||||
| @@ -19,7 +19,7 @@ Rails.application.configure do | |||||||
|   config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? |   config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? | ||||||
|  |  | ||||||
|   # Compress JavaScripts and CSS. |   # Compress JavaScripts and CSS. | ||||||
|   # config.assets.js_compressor = :uglifier |   config.assets.js_compressor = Uglifier.new(mangle: false, output: { comments: :all }) | ||||||
|   # config.assets.css_compressor = :sass |   # config.assets.css_compressor = :sass | ||||||
|  |  | ||||||
|   # Do not fallback to assets pipeline if a precompiled asset is missed. |   # Do not fallback to assets pipeline if a precompiled asset is missed. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user