mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-14 08:49:23 +02:00
Use username as title for mentions
This commit is contained in:
parent
f4e85c571a
commit
237182c171
|
@ -61,7 +61,7 @@ func statusContentFilter(spoiler string, content string,
|
||||||
replacements = append(replacements, ":"+e.ShortCode+":", r)
|
replacements = append(replacements, ":"+e.ShortCode+":", r)
|
||||||
}
|
}
|
||||||
for _, m := range mentions {
|
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)
|
return strings.NewReplacer(replacements...).Replace(content)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue