chiark / gitweb /
URL in statuses is optional.
authorSimon Tatham <anakin@pobox.com>
Fri, 29 Dec 2023 12:12:43 +0000 (12:12 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 29 Dec 2023 18:17:34 +0000 (18:17 +0000)
Reblogs don't have one: you can't view the reblogging status in the
web UI, only the reblogged one.

src/types.rs

index 0b7f2df7c5c5edd298f2f0b0835a90970a26c8d4..12236b3954e0f5c98330a8cbf5e9e18c978e970a 100644 (file)
@@ -99,7 +99,7 @@ pub struct Status {
     pub reblogs_count: u64,
     pub favourites_count: u64,
     pub replies_count: u64,
-    pub url: String,
+    pub url: Option<String>,
     pub in_reply_to_id: Option<String>,
     pub in_reply_to_account_id: Option<String>,
     pub reblog: Option<Box<Status>>,