Browse Source

Use username as title for mentions

master
r 2 years ago
parent
commit
237182c171
  1. 2
      renderer/renderer.go

2
renderer/renderer.go

@ -61,7 +61,7 @@ func statusContentFilter(spoiler string, content string,
replacements = append(replacements, ":"+e.ShortCode+":", r)
}
for _, m := range mentions {
replacements = append(replacements, "\""+m.URL+"\"", "\"/user/"+m.ID+"\"")
replacements = append(replacements, `"`+m.URL+`"`, `"/user/`+m.ID+`" title="@`+m.Acct+`"`)
}
return strings.NewReplacer(replacements...).Replace(content)
}

Loading…
Cancel
Save