aboutsummaryrefslogtreecommitdiff
path: root/service/service.go
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-02-26 11:27:42 +0000
committerr <r@freesoftwareextremist.com>2020-02-26 11:27:42 +0000
commitd5230852cf4da238a0d3acb219f9049e9d669969 (patch)
tree86b1a01e87b1cc4ca6c386fa93c26dd21bd5ba13 /service/service.go
parentc41f9272f919644f66148cafb179a4df0e7eae17 (diff)
downloadbloat-d5230852cf4da238a0d3acb219f9049e9d669969.tar.gz
bloat-d5230852cf4da238a0d3acb219f9049e9d669969.zip
Gracefully handle the elephant
Diffstat (limited to 'service/service.go')
-rw-r--r--service/service.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/service.go b/service/service.go
index 2504f43..e81e007 100644
--- a/service/service.go
+++ b/service/service.go
@@ -339,6 +339,7 @@ func (svc *service) ServeThreadPage(ctx context.Context, c *model.Client,
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)
}