mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 05:48:07 +01:00
Fix non-numeric account identifiers leading to /web/accounts/NaN
I'm not sure what purpose these “+” served?!
This commit is contained in:
parent
787449c12f
commit
d82de360c1
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ export default class StatusHeader extends React.PureComponent {
|
|||
// Handles clicks on account name/image
|
||||
handleAccountClick = (e) => {
|
||||
const { status, parseClick } = this.props;
|
||||
parseClick(e, `/accounts/${+status.getIn(['account', 'id'])}`);
|
||||
parseClick(e, `/accounts/${status.getIn(['account', 'id'])}`);
|
||||
}
|
||||
|
||||
// Rendering.
|
||||
|
|
|
@ -15,7 +15,7 @@ export default class StatusPrepend extends React.PureComponent {
|
|||
|
||||
handleClick = (e) => {
|
||||
const { account, parseClick } = this.props;
|
||||
parseClick(e, `/accounts/${+account.get('id')}`);
|
||||
parseClick(e, `/accounts/${account.get('id')}`);
|
||||
}
|
||||
|
||||
Message = () => {
|
||||
|
|
Loading…
Reference in a new issue