diff options
author | TheBestJohn <john@thebestjohn.com> | 2018-02-10 13:22:30 -0500 |
---|---|---|
committer | Aaron Power <Aaronepower@users.noreply.github.com> | 2018-02-10 18:22:30 +0000 |
commit | ab1e5f86f03d13d44541f2ccb444877346440392 (patch) | |
tree | eed1e24daaa3ab14148f056a4b876c86b01ff490 /src/entities/status.rs | |
parent | 0b5441e52c655aa5ce409a31697b22a9939914e3 (diff) |
Fixed the registration of new apps as well as url of statuses is now an Option<String> (#23)
* Changes IDs to Strings for compliance with APIv1
* - Changed Scope to Scopes to coencide with a quirk of the Mastodon API. Initial registration of the app asks for "Scopes" and authorization asks for "Scope"
- Swapped spaces for urlencoded spaces in the scopes serde definition to prevent broken links
- url of status is returned as a Map not a string"
* Fixed tests and updated Version number
* Fixed tests and verified now... learning experience
Diffstat (limited to 'src/entities/status.rs')
-rw-r--r-- | src/entities/status.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/status.rs b/src/entities/status.rs index e78d7c7..fdd9d87 100644 --- a/src/entities/status.rs +++ b/src/entities/status.rs @@ -12,7 +12,7 @@ pub struct Status { /// A Fediverse-unique resource ID. pub uri: String, /// URL to the status page (can be remote) - pub url: String, + pub url: Option<String>, /// The Account which posted the status. pub account: Account, /// The ID of the status this status is replying to, if the status is |