diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-18 18:18:46 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-18 18:18:46 +0200 |
commit | 0967961de758b375ca61df1ba9b448aaa2e3c1f8 (patch) | |
tree | 5935732cf384f05b35d30c16814b481d9012661b /app/assets/javascripts/components/containers | |
parent | dafcb021534d2a19ff5d4c1f9bedafb52a2ce77f (diff) |
Improve how account detailed view looks, load account's statuses
Diffstat (limited to 'app/assets/javascripts/components/containers')
-rw-r--r-- | app/assets/javascripts/components/containers/status_list_container.jsx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/app/assets/javascripts/components/containers/status_list_container.jsx b/app/assets/javascripts/components/containers/status_list_container.jsx index 743e56c67..a4fba95e1 100644 --- a/app/assets/javascripts/components/containers/status_list_container.jsx +++ b/app/assets/javascripts/components/containers/status_list_container.jsx @@ -2,18 +2,7 @@ import { connect } from 'react-redux'; import StatusList from '../components/status_list'; import { replyCompose } from '../actions/compose'; import { reblog, favourite } from '../actions/interactions'; - -function selectStatus(state, id) { - let status = state.getIn(['timelines', 'statuses', id]); - - status = status.set('account', state.getIn(['timelines', 'accounts', status.get('account')])); - - if (status.get('reblog') !== null) { - status = status.set('reblog', selectStatus(state, status.get('reblog'))); - } - - return status; -}; +import { selectStatus } from '../reducers/timelines'; const mapStateToProps = function (state, props) { return { |