mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-05 03:18:44 +00:00
Show status numbers
This commit is contained in:
parent
b5ca78a2e6
commit
eb3bc15da9
4 changed files with 15 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue