parent
							
								
									5481469322
								
							
						
					
					
						commit
						1501b142d2
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -151,8 +151,12 @@ export default class StatusActionBar extends ImmutablePureComponent { | ||||||
| 
 | 
 | ||||||
|   handleOpen = () => { |   handleOpen = () => { | ||||||
|     let state = {...this.context.router.history.location.state}; |     let state = {...this.context.router.history.location.state}; | ||||||
|     state.mastodonBackSteps = (state.mastodonBackSteps || 0) + 1; |     if (state.mastodonModalOpen) { | ||||||
|     this.context.router.history.push(`/statuses/${this.props.status.get('id')}`, state); |       this.context.router.history.replace(`/statuses/${this.props.status.get('id')}`, { mastodonBackSteps: (state.mastodonBackSteps || 0) + 1 }); | ||||||
|  |     } else { | ||||||
|  |       state.mastodonBackSteps = (state.mastodonBackSteps || 0) + 1; | ||||||
|  |       this.context.router.history.push(`/statuses/${this.props.status.get('id')}`, state); | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   handleEmbed = () => { |   handleEmbed = () => { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue