mirror of https://github.com/mastodon/mastodon
Merge 3fb47ec512
into 1959365c2f
This commit is contained in:
commit
fac2e06df3
|
@ -69,6 +69,10 @@ RemoteHint.propTypes = {
|
|||
|
||||
class AccountTimeline extends ImmutablePureComponent {
|
||||
|
||||
static contextTypes = {
|
||||
identity: PropTypes.object,
|
||||
};
|
||||
|
||||
static propTypes = {
|
||||
params: PropTypes.shape({
|
||||
acct: PropTypes.string,
|
||||
|
@ -92,7 +96,11 @@ class AccountTimeline extends ImmutablePureComponent {
|
|||
};
|
||||
|
||||
_load () {
|
||||
const { accountId, withReplies, params: { tagged }, dispatch } = this.props;
|
||||
const { accountId, withReplies, remote, remoteUrl, params: { tagged }, dispatch } = this.props;
|
||||
|
||||
if (remote && !this.context.identity.signedIn) {
|
||||
window.location.replace(remoteUrl);
|
||||
}
|
||||
|
||||
dispatch(fetchAccount(accountId));
|
||||
|
||||
|
|
Loading…
Reference in New Issue