]> cat aescling's git repositories - mastodon.git/commitdiff
fix some js errors due to number->string change of status ID
authorOndřej Hruška <ondra@ondrovo.com>
Thu, 28 Sep 2017 08:04:20 +0000 (10:04 +0200)
committerOndřej Hruška <ondra@ondrovo.com>
Thu, 28 Sep 2017 08:04:20 +0000 (10:04 +0200)
app/javascript/glitch/components/notification/follow.js
app/javascript/glitch/components/status/action_bar.js
app/javascript/glitch/components/status/index.js

index f471307b932513d1e49475e5a55cb844aa608dcf..99a5c6219f36ee9fa72df1e1f8d50eeeabcd250a 100644 (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,
   };
index d4d26c62c8f3e1380e39daf6b9c238ba2f00a963..f4450d31bfbf5bbd887ce65e0652a369e828a58c 100644 (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,
   };
index 4a2a0e1d42f582cb188e51f6407e401278c7dad3..9e758793c62469139d2bf48b24689cc8342447f4 100644 (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,
This page took 0.031446 seconds and 3 git commands to generate.