Fix display name and title on mute page

This commit is contained in:
r 2023-09-08 14:46:40 +00:00
parent 8a26dd1908
commit 426e9ad14f
2 changed files with 2 additions and 2 deletions

View file

@ -683,7 +683,7 @@ func (s *service) MutePage(c *client, id string) (err error) {
if err != nil { if err != nil {
return return
} }
cdata := s.cdata(c, "Mute"+user.DisplayName+" @"+user.Acct, 0, 0, "") cdata := s.cdata(c, "Mute "+user.DisplayName+" @"+user.Acct, 0, 0, "")
data := &renderer.UserData{ data := &renderer.UserData{
User: user, User: user,
CommonData: cdata, CommonData: cdata,

View file

@ -1,6 +1,6 @@
{{with .Data}} {{with .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}} {{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
<div class="page-title"> Mute {{.User.Acct}} </div> <div class="page-title"> Mute {{EmojiFilter (HTML .User.DisplayName) .User.Emojis | Raw}} @{{.User.Acct}} </div>
<form action="/mute/{{.User.ID}}" method="POST"> <form action="/mute/{{.User.ID}}" method="POST">
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">