store: fix GetByMXC parameter type

This commit is contained in:
Tulir Asokan
2026-03-29 17:44:59 +03:00
parent d124008443
commit f7cbf751a0
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -405,7 +405,7 @@ func (parser *HTMLParser) imgToString(node *html.Node, ctx Context) *EntityStrin
if !isEmoji {
return NewEntityString(alt)
}
if file, _ := parser.Store.TelegramFile.GetByMXC(ctx.Ctx, src); file != nil {
if file, _ := parser.Store.TelegramFile.GetByMXC(ctx.Ctx, id.ContentURIString(src)); file != nil {
if documentID, err := strconv.ParseInt(string(file.LocationID), 10, 64); err == nil {
// Hardcode to a sparkle emoji because telegram requires the custom emoji fallback to be an emoji,
// but we don't know the actual emoji that should be used.