|
|
@ -253,12 +253,12 @@ export default class Status extends ImmutablePureComponent {
|
|
|
|
this.context.router.history.push(`/accounts/${this.props.status.getIn(['account', 'id'])}`);
|
|
|
|
this.context.router.history.push(`/accounts/${this.props.status.getIn(['account', 'id'])}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
handleHotkeyMoveUp = () => {
|
|
|
|
handleHotkeyMoveUp = e => {
|
|
|
|
this.props.onMoveUp(this.props.containerId || this.props.id);
|
|
|
|
this.props.onMoveUp(this.props.containerId || this.props.id, e.target.getAttribute('data-featured'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
handleHotkeyMoveDown = () => {
|
|
|
|
handleHotkeyMoveDown = e => {
|
|
|
|
this.props.onMoveDown(this.props.containerId || this.props.id);
|
|
|
|
this.props.onMoveDown(this.props.containerId || this.props.id, e.target.getAttribute('data-featured'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
handleRef = c => {
|
|
|
|
handleRef = c => {
|
|
|
@ -292,6 +292,7 @@ export default class Status extends ImmutablePureComponent {
|
|
|
|
onOpenMedia,
|
|
|
|
onOpenMedia,
|
|
|
|
notification,
|
|
|
|
notification,
|
|
|
|
hidden,
|
|
|
|
hidden,
|
|
|
|
|
|
|
|
featured,
|
|
|
|
...other
|
|
|
|
...other
|
|
|
|
} = this.props;
|
|
|
|
} = this.props;
|
|
|
|
const { isExpanded } = this.state;
|
|
|
|
const { isExpanded } = this.state;
|
|
|
@ -426,6 +427,7 @@ export default class Status extends ImmutablePureComponent {
|
|
|
|
{...selectorAttribs}
|
|
|
|
{...selectorAttribs}
|
|
|
|
ref={handleRef}
|
|
|
|
ref={handleRef}
|
|
|
|
tabIndex='0'
|
|
|
|
tabIndex='0'
|
|
|
|
|
|
|
|
data-featured={featured ? 'true' : null}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<header className='status__info'>
|
|
|
|
<header className='status__info'>
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|