mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
parent
17fb1c4345
commit
5b92910664
@ -151,9 +151,13 @@ export default class StatusActionBar extends ImmutablePureComponent {
|
|||||||
|
|
||||||
handleOpen = () => {
|
handleOpen = () => {
|
||||||
let state = {...this.context.router.history.location.state};
|
let state = {...this.context.router.history.location.state};
|
||||||
|
if (state.mastodonModalOpen) {
|
||||||
|
this.context.router.history.replace(`/statuses/${this.props.status.get('id')}`, { mastodonBackSteps: (state.mastodonBackSteps || 0) + 1 });
|
||||||
|
} else {
|
||||||
state.mastodonBackSteps = (state.mastodonBackSteps || 0) + 1;
|
state.mastodonBackSteps = (state.mastodonBackSteps || 0) + 1;
|
||||||
this.context.router.history.push(`/statuses/${this.props.status.get('id')}`, state);
|
this.context.router.history.push(`/statuses/${this.props.status.get('id')}`, state);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
handleEmbed = () => {
|
handleEmbed = () => {
|
||||||
this.props.onEmbed(this.props.status);
|
this.props.onEmbed(this.props.status);
|
||||||
|
Loading…
Reference in New Issue
Block a user