aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2023-09-08 14:46:40 +0000
committerr <r@freesoftwareextremist.com>2023-09-08 14:46:40 +0000
commit426e9ad14f299a674b672d256ca8644281ec267f (patch)
tree9462f5592b99938925bf394390f9ff757b173bff
parent8a26dd19084e8846a0ca97c328b0a1e7b5cf10a9 (diff)
downloadbloat-426e9ad14f299a674b672d256ca8644281ec267f.tar.gz
bloat-426e9ad14f299a674b672d256ca8644281ec267f.zip
Fix display name and title on mute page
-rw-r--r--service/service.go2
-rw-r--r--templates/mute.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/service/service.go b/service/service.go
index 0d2e196..bc9e5b8 100644
--- a/service/service.go
+++ b/service/service.go
@@ -683,7 +683,7 @@ func (s *service) MutePage(c *client, id string) (err error) {
if err != nil {
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{
User: user,
CommonData: cdata,
diff --git a/templates/mute.tmpl b/templates/mute.tmpl
index 47d0533..ee66b91 100644
--- a/templates/mute.tmpl
+++ b/templates/mute.tmpl
@@ -1,6 +1,6 @@
{{with .Data}}
{{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">
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">