Use account mentions as default text in replies

This commit is contained in:
r 2019-12-13 20:33:20 +00:00
parent 9ba666009b
commit 2495d3389e
3 changed files with 23 additions and 11 deletions

View file

@ -246,7 +246,17 @@ func (svc *service) ServeThreadPage(ctx context.Context, client io.Writer, c *ma
return
}
data := renderer.NewThreadPageTemplateData(status, context, reply, id)
var content string
if reply {
content += status.Account.Acct + " "
for _, m := range status.Mentions {
content += m.Acct + " "
}
}
fmt.Println("content", content)
data := renderer.NewThreadPageTemplateData(status, context, reply, id, content)
err = svc.renderer.RenderThreadPage(ctx, client, data)
if err != nil {
return