
As described in https://github.com/nolanlawson/pinafore/issues/369#issuecomment-467211908 this is the first step toward fixing #369
8 lines
214 B
JavaScript
8 lines
214 B
JavaScript
export function timelineItemToSummary (item) {
|
|
return {
|
|
id: item.id,
|
|
replyId: (item.in_reply_to_id) || void 0,
|
|
reblogId: (item.reblog && item.reblog.id) || void 0,
|
|
type: item.type || void 0
|
|
}
|
|
}
|