[backend/masto-client] Set category for emojis

This commit is contained in:
pancakes 2024-06-24 17:02:52 +10:00
parent 6a5ae73e11
commit 6b5a5a1a09
No known key found for this signature in database
GPG key ID: ED53D426432B861B
3 changed files with 6 additions and 3 deletions

View file

@ -71,7 +71,8 @@ public class InstanceController(DatabaseContext db, MetaService meta) : Controll
Shortcode = p.Name,
Url = p.PublicUrl,
StaticUrl = p.PublicUrl, //TODO
VisibleInPicker = true
VisibleInPicker = true,
Category = p.Category
})
.ToListAsync();

View file

@ -380,7 +380,8 @@ public class NoteRenderer(
Shortcode = p.Name,
Url = p.PublicUrl,
StaticUrl = p.PublicUrl, //TODO
VisibleInPicker = true
VisibleInPicker = true,
Category = p.Category
})
.ToListAsync();
}

View file

@ -96,7 +96,8 @@ public class UserRenderer(IOptions<Config.InstanceSection> config, MfmConverter
Shortcode = p.Name,
Url = p.PublicUrl,
StaticUrl = p.PublicUrl, //TODO
VisibleInPicker = true
VisibleInPicker = true,
Category = p.Category
})
.ToListAsync();
}