This commit is contained in:
Wesley Aptekar-Cassels 2024-05-10 20:06:50 +00:00 committed by GitHub
commit fac2e06df3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -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));