From 1223d2827c9772efa78c1720c30ca6ba3238dd9c Mon Sep 17 00:00:00 2001 From: Ember Date: Sun, 29 Oct 2023 18:45:18 +1100 Subject: [PATCH] try a fix? --- app/javascript/flavours/glitch/components/status.jsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/javascript/flavours/glitch/components/status.jsx b/app/javascript/flavours/glitch/components/status.jsx index 370c4684fda625..4ffdc4d2f92198 100644 --- a/app/javascript/flavours/glitch/components/status.jsx +++ b/app/javascript/flavours/glitch/components/status.jsx @@ -69,12 +69,9 @@ export const defaultMediaVisibility = (status, settings) => { class Status extends ImmutablePureComponent { - static contextTypes = { - identity: PropTypes.object, - }; - static propTypes = { containerId: PropTypes.string, + identity: PropTypes.object, id: PropTypes.string, status: ImmutablePropTypes.map, account: ImmutablePropTypes.map, @@ -844,7 +841,7 @@ class Status extends ImmutablePureComponent { numVisible={visibleReactions} addReaction={this.props.onReactionAdd} removeReaction={this.props.onReactionRemove} - canReact={this.context.identity.signedIn} + canReact={this.props.identity.signedIn} /> {!isCollapsed || !(muted || !settings.getIn(['collapsed', 'show_action_bar'])) ? (