diff --git a/app/javascript/gabsocial/components/status.js b/app/javascript/gabsocial/components/status.js index 87d7d13e..72fec350 100644 --- a/app/javascript/gabsocial/components/status.js +++ b/app/javascript/gabsocial/components/status.js @@ -93,7 +93,8 @@ class Status extends ImmutablePureComponent { cacheMediaWidth: PropTypes.func, cachedMediaWidth: PropTypes.number, group: ImmutablePropTypes.map, - promoted: PropTypes.bool + promoted: PropTypes.bool, + onOpenProUpgradeModal: PropTypes.func, }; // Avoid checking props that are functions (and whose equality will always @@ -259,6 +260,10 @@ class Status extends ImmutablePureComponent { this.node = c; } + handleOpenProUpgradeModal = () => { + this.props.onOpenProUpgradeModal(); + } + render () { let media = null; let statusAvatar, prepend, rebloggedByText, reblogContent; @@ -297,10 +302,10 @@ class Status extends ImmutablePureComponent { if (promoted) { prepend = ( -