Progress
This commit is contained in:
@@ -79,10 +79,6 @@ export function importFetchedStatuses(statuses) {
|
||||
if (status.poll && status.poll.id) {
|
||||
pushUnique(polls, normalizePoll(status.poll));
|
||||
}
|
||||
|
||||
// if (status.replies_count > 0) {
|
||||
// dispatch(fetchComments(status.id));
|
||||
// }
|
||||
}
|
||||
|
||||
statuses.forEach(processStatus);
|
||||
|
||||
@@ -189,8 +189,13 @@ export function deleteStatusFail(id, error) {
|
||||
};
|
||||
};
|
||||
|
||||
export function fetchContext(id) {
|
||||
export function fetchContext(id, ensureIsReply) {
|
||||
return (dispatch, getState) => {
|
||||
if (ensureIsReply) {
|
||||
const isReply = !!getState().getIn(['statuses', id, 'in_reply_to_id'], null)
|
||||
if (!isReply) return;
|
||||
}
|
||||
|
||||
dispatch(fetchContextRequest(id));
|
||||
|
||||
api(getState).get(`/api/v1/statuses/${id}/context`).then(response => {
|
||||
|
||||
Reference in New Issue
Block a user