[backend/masto-client] Set category for emojis
This commit is contained in:
parent
6a5ae73e11
commit
6b5a5a1a09
3 changed files with 6 additions and 3 deletions
|
@ -71,7 +71,8 @@ public class InstanceController(DatabaseContext db, MetaService meta) : Controll
|
||||||
Shortcode = p.Name,
|
Shortcode = p.Name,
|
||||||
Url = p.PublicUrl,
|
Url = p.PublicUrl,
|
||||||
StaticUrl = p.PublicUrl, //TODO
|
StaticUrl = p.PublicUrl, //TODO
|
||||||
VisibleInPicker = true
|
VisibleInPicker = true,
|
||||||
|
Category = p.Category
|
||||||
})
|
})
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
|
|
|
@ -380,7 +380,8 @@ public class NoteRenderer(
|
||||||
Shortcode = p.Name,
|
Shortcode = p.Name,
|
||||||
Url = p.PublicUrl,
|
Url = p.PublicUrl,
|
||||||
StaticUrl = p.PublicUrl, //TODO
|
StaticUrl = p.PublicUrl, //TODO
|
||||||
VisibleInPicker = true
|
VisibleInPicker = true,
|
||||||
|
Category = p.Category
|
||||||
})
|
})
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,7 +96,8 @@ public class UserRenderer(IOptions<Config.InstanceSection> config, MfmConverter
|
||||||
Shortcode = p.Name,
|
Shortcode = p.Name,
|
||||||
Url = p.PublicUrl,
|
Url = p.PublicUrl,
|
||||||
StaticUrl = p.PublicUrl, //TODO
|
StaticUrl = p.PublicUrl, //TODO
|
||||||
VisibleInPicker = true
|
VisibleInPicker = true,
|
||||||
|
Category = p.Category
|
||||||
})
|
})
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue