From 9c5f001fd2bfd8a2d06e36f6dd1b7ac0c41e5cd2 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sat, 29 Jul 2017 19:10:09 +0200 Subject: [PATCH] Add back relative numbering. --- src/components/conversation/conversation.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index 4ee6c32e..89fcfddb 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -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 }, {}) }