|
|
@ -16,7 +16,6 @@ export const TIMELINE_CONTEXT_UPDATE = 'CONTEXT_UPDATE'; |
|
|
|
|
|
|
|
|
|
|
|
export function updateTimeline(timeline, status) { |
|
|
|
export function updateTimeline(timeline, status) { |
|
|
|
return (dispatch, getState) => { |
|
|
|
return (dispatch, getState) => { |
|
|
|
const references = status.reblog ? getState().get('statuses').filter((item, itemId) => (itemId === status.reblog.id || item.get('reblog') === status.reblog.id)).map((_, itemId) => itemId) : []; |
|
|
|
|
|
|
|
const parents = []; |
|
|
|
const parents = []; |
|
|
|
|
|
|
|
|
|
|
|
if (status.in_reply_to_id) { |
|
|
|
if (status.in_reply_to_id) { |
|
|
@ -32,7 +31,6 @@ export function updateTimeline(timeline, status) { |
|
|
|
type: TIMELINE_UPDATE, |
|
|
|
type: TIMELINE_UPDATE, |
|
|
|
timeline, |
|
|
|
timeline, |
|
|
|
status, |
|
|
|
status, |
|
|
|
references, |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if (parents.length > 0) { |
|
|
|
if (parents.length > 0) { |
|
|
|