Skip to content

Commit

Permalink
Merge pull request #92 from h3poteto/fix/announcement-typo
Browse files Browse the repository at this point in the history
Fix typo of announcement entities
  • Loading branch information
h3poteto authored May 31, 2023
2 parents 6884f14 + a6db54c commit 53f1c3b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/entities/announcement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct Announcement {
pub id: String,
pub conent: String,
pub content: String,
pub starts_at: Option<DateTime<Utc>>,
pub ends_at: Option<DateTime<Utc>>,
pub published: bool,
Expand Down
4 changes: 2 additions & 2 deletions src/mastodon/entities/announcement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use serde::Deserialize;
#[derive(Debug, Clone, Deserialize)]
pub struct Announcement {
id: String,
conent: String,
content: String,
starts_at: Option<DateTime<Utc>>,
ends_at: Option<DateTime<Utc>>,
published: bool,
Expand Down Expand Up @@ -48,7 +48,7 @@ impl Into<MegalodonEntities::Announcement> for Announcement {
fn into(self) -> MegalodonEntities::Announcement {
MegalodonEntities::Announcement {
id: self.id,
conent: self.conent,
content: self.content,
starts_at: self.starts_at,
ends_at: self.ends_at,
published: self.published,
Expand Down
4 changes: 2 additions & 2 deletions src/pleroma/entities/announcement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use serde::Deserialize;
#[derive(Debug, Clone, Deserialize)]
pub struct Announcement {
id: String,
conent: String,
content: String,
starts_at: Option<DateTime<Utc>>,
ends_at: Option<DateTime<Utc>>,
published: bool,
Expand Down Expand Up @@ -47,7 +47,7 @@ impl Into<MegalodonEntities::Announcement> for Announcement {
fn into(self) -> MegalodonEntities::Announcement {
MegalodonEntities::Announcement {
id: self.id,
conent: self.conent,
content: self.content,
starts_at: self.starts_at,
ends_at: self.ends_at,
published: self.published,
Expand Down

0 comments on commit 53f1c3b

Please sign in to comment.