json+ld; profile, not json+ld; context
This commit is contained in:
parent
33fd061a8a
commit
44cf59a8ea
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "actix-webfinger"
|
||||
description = "Types and helpers to create and fetch Webfinger resources"
|
||||
version = "0.3.0-alpha.5"
|
||||
version = "0.3.0-alpha.6"
|
||||
license = "GPL-3.0"
|
||||
authors = ["asonix <asonix@asonix.dog>"]
|
||||
repository = "https://git.asonix.dog/Aardwolf/actix-webfinger"
|
||||
|
|
|
@ -13,9 +13,9 @@ First, add Actix Webfinger as a dependency
|
|||
|
||||
```toml
|
||||
[dependencies]
|
||||
actix = "0.10.0-alpha.1"
|
||||
actix-rt = "0.10.0-alpha.2"
|
||||
actix-web = "3.0.0-alpha.1"
|
||||
actix-webfinger = "0.3.0-alpha.5"
|
||||
actix-webfinger = "0.3.0-alpha.6"
|
||||
```
|
||||
|
||||
Then use it in your application
|
||||
|
|
|
@ -476,10 +476,10 @@ impl Webfinger {
|
|||
}
|
||||
|
||||
/// Add a JsonLD Link to this Webfinger
|
||||
pub fn add_json_ld(&mut self, href: &str, context: &str) -> &mut Self {
|
||||
pub fn add_json_ld(&mut self, href: &str, profile: &str) -> &mut Self {
|
||||
self.links.push(Link {
|
||||
rel: "self".to_owned(),
|
||||
kind: Some(format!("application/ld+json; context=\"{}\"", context)),
|
||||
kind: Some(format!("application/ld+json; profile=\"{}\"", profile)),
|
||||
href: Some(href.to_owned()),
|
||||
template: None,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue