File tree Expand file tree Collapse file tree
app/javascript/mastodon/features Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ class Favourites extends ImmutablePureComponent {
2727 } ;
2828
2929 componentWillMount ( ) {
30- this . props . dispatch ( fetchFavourites ( this . props . params . statusId ) ) ;
30+ if ( ! this . props . accountIds ) {
31+ this . props . dispatch ( fetchFavourites ( this . props . params . statusId ) ) ;
32+ }
3133 }
3234
3335 componentWillReceiveProps ( nextProps ) {
Original file line number Diff line number Diff line change @@ -40,8 +40,10 @@ class Followers extends ImmutablePureComponent {
4040 } ;
4141
4242 componentWillMount ( ) {
43- this . props . dispatch ( fetchAccount ( this . props . params . accountId ) ) ;
44- this . props . dispatch ( fetchFollowers ( this . props . params . accountId ) ) ;
43+ if ( ! this . props . accountIds ) {
44+ this . props . dispatch ( fetchAccount ( this . props . params . accountId ) ) ;
45+ this . props . dispatch ( fetchFollowers ( this . props . params . accountId ) ) ;
46+ }
4547 }
4648
4749 componentWillReceiveProps ( nextProps ) {
Original file line number Diff line number Diff line change @@ -40,8 +40,10 @@ class Following extends ImmutablePureComponent {
4040 } ;
4141
4242 componentWillMount ( ) {
43- this . props . dispatch ( fetchAccount ( this . props . params . accountId ) ) ;
44- this . props . dispatch ( fetchFollowing ( this . props . params . accountId ) ) ;
43+ if ( ! this . props . accountIds ) {
44+ this . props . dispatch ( fetchAccount ( this . props . params . accountId ) ) ;
45+ this . props . dispatch ( fetchFollowing ( this . props . params . accountId ) ) ;
46+ }
4547 }
4648
4749 componentWillReceiveProps ( nextProps ) {
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ class Reblogs extends ImmutablePureComponent {
2727 } ;
2828
2929 componentWillMount ( ) {
30- this . props . dispatch ( fetchReblogs ( this . props . params . statusId ) ) ;
30+ if ( ! this . props . accountIds ) {
31+ this . props . dispatch ( fetchReblogs ( this . props . params . statusId ) ) ;
32+ }
3133 }
3234
3335 componentWillReceiveProps ( nextProps ) {
You can’t perform that action at this time.
0 commit comments