diff --git a/packages/nicolium/src/stores/timelines.ts b/packages/nicolium/src/stores/timelines.ts index b9cb23a57..4c26af603 100644 --- a/packages/nicolium/src/stores/timelines.ts +++ b/packages/nicolium/src/stores/timelines.ts @@ -10,6 +10,8 @@ type TimelineEntry = | { type: 'status'; id: string; + // id of the topmost status where the target status was found, either the status itself or its reblog + originalId: string; rebloggedBy: Array; reblogIds: Array; isConnectedTop?: boolean; @@ -95,6 +97,7 @@ const processPage = (statuses: Array): Array => { timelinePage.push({ type: 'status', id: status.reblog.id, + originalId: status.id, rebloggedBy: [status.account.id], reblogIds: [status.id], isConnectedTop, @@ -106,6 +109,7 @@ const processPage = (statuses: Array): Array => { timelinePage.push({ type: 'status', id: status.id, + originalId: status.id, rebloggedBy: [], reblogIds: [], isConnectedTop, @@ -244,6 +248,7 @@ const useTimelinesStore = create()( timeline.entries[idx] = { type: 'status', id: newId, + originalId: newId, rebloggedBy: [], reblogIds: [], };