|
|
|
@ -3,6 +3,7 @@ import PropTypes from 'prop-types'; |
|
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes'; |
|
|
|
|
import StatusContainer from '../../../containers/status_container'; |
|
|
|
|
import AccountContainer from '../../../containers/account_container'; |
|
|
|
|
import RelativeTimestamp from '../../../components/relative_timestamp'; |
|
|
|
|
import { injectIntl, FormattedMessage } from 'react-intl'; |
|
|
|
|
import Permalink from '../../../components/permalink'; |
|
|
|
|
import ImmutablePureComponent from 'react-immutable-pure-component'; |
|
|
|
@ -87,9 +88,11 @@ class Notification extends ImmutablePureComponent { |
|
|
|
|
</div> |
|
|
|
|
<span title={notification.get('created_at')}> |
|
|
|
|
<FormattedMessage id='notification.follow' defaultMessage='{name} followed you' values={{ name: link }} /> |
|
|
|
|
<span className='notification__relative_time'> |
|
|
|
|
<RelativeTimestamp timestamp={notification.get('created_at')} /> |
|
|
|
|
</span> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<AccountContainer id={account.get('id')} withNote={false} hidden={this.props.hidden} /> |
|
|
|
|
</div> |
|
|
|
|
</HotKeys> |
|
|
|
@ -120,6 +123,9 @@ class Notification extends ImmutablePureComponent { |
|
|
|
|
<i className='fa fa-fw fa-star star-icon' /> |
|
|
|
|
</div> |
|
|
|
|
<FormattedMessage id='notification.favourite' defaultMessage='{name} favourited your status' values={{ name: link }} /> |
|
|
|
|
<span className='notification__relative_time'> |
|
|
|
|
<RelativeTimestamp className='notification__relative_time' timestamp={notification.get('created_at')} /> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<StatusContainer id={notification.get('status')} account={notification.get('account')} muted withDismiss hidden={!!this.props.hidden} /> |
|
|
|
@ -139,6 +145,9 @@ class Notification extends ImmutablePureComponent { |
|
|
|
|
<i className='fa fa-fw fa-retweet' /> |
|
|
|
|
</div> |
|
|
|
|
<FormattedMessage id='notification.reblog' defaultMessage='{name} boosted your status' values={{ name: link }} /> |
|
|
|
|
<span className='notification__relative_time'> |
|
|
|
|
<RelativeTimestamp className='notification__relative_time' timestamp={notification.get('created_at')} /> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<StatusContainer id={notification.get('status')} account={notification.get('account')} muted withDismiss hidden={this.props.hidden} /> |
|
|
|
|