|
|
|
@ -53,6 +53,7 @@ export default class Status extends ImmutablePureComponent {
|
|
|
|
|
onReply: PropTypes.func,
|
|
|
|
|
onFavourite: PropTypes.func,
|
|
|
|
|
onReblog: PropTypes.func,
|
|
|
|
|
onBookmark: PropTypes.func,
|
|
|
|
|
onDelete: PropTypes.func,
|
|
|
|
|
onDirect: PropTypes.func,
|
|
|
|
|
onMention: PropTypes.func,
|
|
|
|
@ -337,6 +338,10 @@ export default class Status extends ImmutablePureComponent {
|
|
|
|
|
this.props.onReblog(this.props.status, e);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handleHotkeyBookmark = e => {
|
|
|
|
|
this.props.onBookmark(this.props.status, e);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handleHotkeyMention = e => {
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
this.props.onMention(this.props.status.get('account'), this.context.router.history);
|
|
|
|
@ -550,6 +555,7 @@ export default class Status extends ImmutablePureComponent {
|
|
|
|
|
moveUp: this.handleHotkeyMoveUp,
|
|
|
|
|
moveDown: this.handleHotkeyMoveDown,
|
|
|
|
|
toggleSpoiler: this.handleExpandedToggle,
|
|
|
|
|
bookmark: this.handleHotkeyBookmark,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const computedClass = classNames('status', `status-${status.get('visibility')}`, {
|
|
|
|
|