[backend/libmfm] Set alt text for emoji in public preview
This commit is contained in:
parent
5cf951e908
commit
9989aae29e
1 changed files with 1 additions and 0 deletions
|
@ -198,6 +198,7 @@ public class MfmConverter(
|
|||
var el = document.CreateElement("span");
|
||||
var inner = document.CreateElement("img");
|
||||
inner.SetAttribute("src", hit.PublicUrl);
|
||||
inner.SetAttribute("alt", hit.Name);
|
||||
el.AppendChild(inner);
|
||||
el.ClassList.Add("emoji");
|
||||
return el;
|
||||
|
|
Loading…
Add table
Reference in a new issue