mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-25 17:12:58 -05:00
795f0107d2
* Include preview cards in status entity in REST API * Display preview card in-stream * Improve in-stream display of preview cards
9 lines
242 B
JavaScript
9 lines
242 B
JavaScript
import { connect } from 'react-redux';
|
|
import Card from '../components/card';
|
|
|
|
const mapStateToProps = (state, { statusId }) => ({
|
|
card: state.getIn(['statuses', statusId, 'card'], null),
|
|
});
|
|
|
|
export default connect(mapStateToProps)(Card);
|