diff --git a/src/sn.rs b/src/sn.rs index 80ff5a2..e9b8a01 100644 --- a/src/sn.rs +++ b/src/sn.rs @@ -80,6 +80,9 @@ struct CustomMetadata { // and if the post were published, it will // be removed from the public list unlist: Option, + // An alias because I always want to use `unlisted` for some reason + // `unlist` takes precedence over this alias + unlisted: Option, url: Option, timestamp: Option // Should be something `js_sys::Date::parse` could handle } @@ -134,6 +137,8 @@ fn build_metadata(custom: Option, uuid: &str, title: &str) -> Me if let Some(custom) = custom { if let Some(unlist) = custom.unlist { ret.unlist = unlist; + } else if let Some(unlisted) = custom.unlisted { + ret.unlist = unlisted; } if let Some(url) = custom.url {