logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: 9c5f001fd2bfd8a2d06e36f6dd1b7ac0c41e5cd2
parent: 32e20b2e025e20f38b4acdea55a13a647463a9f1
Author: Roger Braun <roger@rogerbraun.net>
Date:   Sat, 29 Jul 2017 19:10:09 +0200

Add back relative numbering.

Diffstat:

Msrc/components/conversation/conversation.js4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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 }, {}) }