Browse Source

Fix non-numeric account identifiers leading to /web/accounts/NaN

I'm not sure what purpose these “+” served?!
closed-social-glitch-2
Thibaut Girka 5 years ago
committed by ThibG
parent
commit
d82de360c1
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/components/status_header.js
  2. +1
    -1
      app/javascript/flavours/glitch/components/status_prepend.js

+ 1
- 1
app/javascript/flavours/glitch/components/status_header.js View File

@ -19,7 +19,7 @@ export default class StatusHeader extends React.PureComponent {
// Handles clicks on account name/image // Handles clicks on account name/image
handleAccountClick = (e) => { handleAccountClick = (e) => {
const { status, parseClick } = this.props; const { status, parseClick } = this.props;
parseClick(e, `/accounts/${+status.getIn(['account', 'id'])}`);
parseClick(e, `/accounts/${status.getIn(['account', 'id'])}`);
} }
// Rendering. // Rendering.

+ 1
- 1
app/javascript/flavours/glitch/components/status_prepend.js View File

@ -15,7 +15,7 @@ export default class StatusPrepend extends React.PureComponent {
handleClick = (e) => { handleClick = (e) => {
const { account, parseClick } = this.props; const { account, parseClick } = this.props;
parseClick(e, `/accounts/${+account.get('id')}`);
parseClick(e, `/accounts/${account.get('id')}`);
} }
Message = () => { Message = () => {

Loading…
Cancel
Save