Skip to content
Snippets Groups Projects
Commit 9c5f001f authored by lain's avatar lain
Browse files

Add back relative numbering.

parent 32e20b2e
No related branches found
No related tags found
No related merge requests found
......@@ -35,15 +35,17 @@ const conversation = {
return sortAndFilterConversation(conversation)
},
replies () {
let i = 1
return reduce(this.conversation, (result, {id, in_reply_to_status_id}) => {
const irid = Number(in_reply_to_status_id)
if (irid) {
result[irid] = result[irid] || []
result[irid].push({
name: `#${id}`,
name: `#${i}`,
id: id
})
}
i++
return result
}, {})
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment