mirror of
https://git.freesoftwareextremist.com/bloat
synced 2024-12-22 09:10:42 +00:00
Use username as title for mentions
This commit is contained in:
parent
f4e85c571a
commit
237182c171
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue