mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-01 09:34:21 +00:00
Use account mentions as default text in replies
This commit is contained in:
parent
9ba666009b
commit
2495d3389e
3 changed files with 23 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue