forked from MightyPork/elefren-fork
Changes IDs to Strings for compliance with APIv1 (#20)
This commit is contained in:
@@ -8,7 +8,7 @@ use status_builder::Visibility;
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
pub struct Status {
|
||||
/// The ID of the status.
|
||||
pub id: i64,
|
||||
pub id: String,
|
||||
/// A Fediverse-unique resource ID.
|
||||
pub uri: String,
|
||||
/// URL to the status page (can be remote)
|
||||
@@ -17,10 +17,10 @@ pub struct Status {
|
||||
pub account: Account,
|
||||
/// The ID of the status this status is replying to, if the status is
|
||||
/// a reply.
|
||||
pub in_reply_to_id: Option<u64>,
|
||||
pub in_reply_to_id: Option<String>,
|
||||
/// The ID of the account this status is replying to, if the status is
|
||||
/// a reply.
|
||||
pub in_reply_to_account_id: Option<u64>,
|
||||
pub in_reply_to_account_id: Option<String>,
|
||||
/// If this status is a reblogged Status of another User.
|
||||
pub reblog: Option<Box<Status>>,
|
||||
/// Body of the status; this will contain HTML
|
||||
@@ -63,7 +63,7 @@ pub struct Mention {
|
||||
/// Equals `username` for local users, includes `@domain` for remote ones.
|
||||
pub acct: String,
|
||||
/// Account ID.
|
||||
pub id: u64,
|
||||
pub id: String,
|
||||
}
|
||||
|
||||
/// Hashtags in the status.
|
||||
|
||||
Reference in New Issue
Block a user