mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-20 01:23:50 -05:00
[Glitch] Fix follower/following lists resetting on back-navigation in web UI
Port 9683e1dcf8bbddb07b818960abf254248be3575c to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
parent
15973b77d6
commit
a2bf1f9f56
@ -31,7 +31,9 @@ class Favourites extends ImmutablePureComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount () {
|
componentWillMount () {
|
||||||
this.props.dispatch(fetchFavourites(this.props.params.statusId));
|
if (!this.props.accountIds) {
|
||||||
|
this.props.dispatch(fetchFavourites(this.props.params.statusId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps (nextProps) {
|
componentWillReceiveProps (nextProps) {
|
||||||
|
@ -36,8 +36,10 @@ class Followers extends ImmutablePureComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount () {
|
componentWillMount () {
|
||||||
this.props.dispatch(fetchAccount(this.props.params.accountId));
|
if (!this.props.accountIds) {
|
||||||
this.props.dispatch(fetchFollowers(this.props.params.accountId));
|
this.props.dispatch(fetchAccount(this.props.params.accountId));
|
||||||
|
this.props.dispatch(fetchFollowers(this.props.params.accountId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps (nextProps) {
|
componentWillReceiveProps (nextProps) {
|
||||||
|
@ -36,8 +36,10 @@ class Following extends ImmutablePureComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount () {
|
componentWillMount () {
|
||||||
this.props.dispatch(fetchAccount(this.props.params.accountId));
|
if (!this.props.accountIds) {
|
||||||
this.props.dispatch(fetchFollowing(this.props.params.accountId));
|
this.props.dispatch(fetchAccount(this.props.params.accountId));
|
||||||
|
this.props.dispatch(fetchFollowing(this.props.params.accountId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps (nextProps) {
|
componentWillReceiveProps (nextProps) {
|
||||||
|
@ -31,7 +31,9 @@ class Reblogs extends ImmutablePureComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount () {
|
componentWillMount () {
|
||||||
this.props.dispatch(fetchReblogs(this.props.params.statusId));
|
if (!this.props.accountIds) {
|
||||||
|
this.props.dispatch(fetchReblogs(this.props.params.statusId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
componentWillReceiveProps(nextProps) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user