Browse Source

fix some js errors due to number->string change of status ID

closed-social-glitch-2
Ondřej Hruška 7 years ago
parent
commit
9a5418942c
No known key found for this signature in database GPG Key ID: 2C5FD5035250423D
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      app/javascript/glitch/components/notification/follow.js
  2. +1
    -1
      app/javascript/glitch/components/status/action_bar.js
  3. +2
    -2
      app/javascript/glitch/components/status/index.js

+ 1
- 1
app/javascript/glitch/components/notification/follow.js View File

@ -30,7 +30,7 @@ import NotificationOverlayContainer from '../notification/overlay/container';
export default class NotificationFollow extends ImmutablePureComponent {
static propTypes = {
id : PropTypes.number.isRequired,
id : PropTypes.string.isRequired,
account : ImmutablePropTypes.map.isRequired,
notification : ImmutablePropTypes.map.isRequired,
};

+ 1
- 1
app/javascript/glitch/components/status/action_bar.js View File

@ -50,7 +50,7 @@ export default class StatusActionBar extends ImmutablePureComponent {
onEmbed: PropTypes.func,
onMuteConversation: PropTypes.func,
onPin: PropTypes.func,
me: PropTypes.number,
me: PropTypes.string,
withDismiss: PropTypes.bool,
intl: PropTypes.object.isRequired,
};

+ 2
- 2
app/javascript/glitch/components/status/index.js View File

@ -155,12 +155,12 @@ export default class Status extends ImmutablePureComponent {
};
static propTypes = {
id : PropTypes.number,
id : PropTypes.string,
status : ImmutablePropTypes.map,
account : ImmutablePropTypes.map,
settings : ImmutablePropTypes.map,
notification : ImmutablePropTypes.map,
me : PropTypes.number,
me : PropTypes.string,
onFavourite : PropTypes.func,
onReblog : PropTypes.func,
onModalReblog : PropTypes.func,

Loading…
Cancel
Save