Skip to content

Commit

Permalink
feat: support note emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Mar 7, 2024
1 parent 8648497 commit 3522cce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/api_mastodon/src/entities/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub struct Status {
pub account: Account,
pub created_at: String,
pub content: String,
/// until I figure it out, it should always be an empty vec
pub emojis: Vec<CustomEmoji>,
/// depends on context
pub replies_count: u64,
Expand All @@ -45,7 +44,7 @@ impl Status {
account: Account::from_json(service)?,
created_at: note.published,
content: note.content,
emojis: vec![],
emojis: CustomEmoji::from_json(note.tag),
replies_count: 0,
reblogs_count: 0,
favourites_count: 0,
Expand Down

0 comments on commit 3522cce

Please sign in to comment.