Add a source property to posts

To store the Markdown
This commit is contained in:
Bat
2018-09-06 20:00:55 +01:00
parent b99e34f624
commit 7152d714ae
6 changed files with 26 additions and 3 deletions
+10
View File
@@ -175,3 +175,13 @@ pub struct Hashtag {
#[activitystreams(concrete(String), functional)]
pub name: Option<serde_json::Value>,
}
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Source {
pub media_type: String,
pub content: String,
}
impl Object for Source {}