Show status numbers
[bloat] / service / service.go
index 063624c2c3c9ddec493d9ab39e77524d77322cd0..2c4f0b00bdfeb1403be67b6344fe07e946c55917 100644 (file)
@@ -342,12 +342,16 @@ func (svc *service) ServeThreadPage(c *model.Client, id string, reply bool) (err
 
        statuses := append(append(context.Ancestors, status), context.Descendants...)
        replies := make(map[string][]mastodon.ReplyInfo)
+       idNumbers := make(map[string]int)
 
        for i := range statuses {
                statuses[i].ShowReplies = true
-               statuses[i].ReplyMap = replies
-               statuses[i].ReplyNumber = i
-               addToReplyMap(replies, statuses[i].InReplyToID, statuses[i].ID, i+1)
+
+               statuses[i].IDNumbers = idNumbers
+               idNumbers[statuses[i].ID] = i + 1
+
+               statuses[i].IDReplies = replies
+               addToReplyMap(replies, statuses[i].InReplyToID, statuses[i].ID, i + 1)
        }
 
        commonData := svc.getCommonData(c, "post by "+status.Account.DisplayName)