Use account mentions as default text in replies
[bloat] / service / service.go
index 7088a9be601b69d8ed0a4576db3faace1db0dcc4..8b5562d67feafbdb49621fc486c0e362450c36e5 100644 (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