WIP: Create apub_inbox
crate #8
3 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ impl StreamsLink for &json_ld::Node {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn activitystreams_rel(&self) -> impl Iterator<Item = AResult<String>> {
|
fn activitystreams_rel_lenient(&self) -> impl Iterator<Item = AResult<String>> {
|
||||||
self.jsonld_iter_value_string(
|
self.jsonld_iter_value_string(
|
||||||
iri!("https://www.w3.org/ns/activitystreams#rel")
|
iri!("https://www.w3.org/ns/activitystreams#rel")
|
||||||
)
|
)
|
||||||
|
|
|
@ -26,7 +26,7 @@ pub trait StreamsLink {
|
||||||
fn activitystreams_href(&self) -> Option<AResult<String>>;
|
fn activitystreams_href(&self) -> Option<AResult<String>>;
|
||||||
|
|
||||||
// FIXME: This accepts any kind of string, and does not filter to HTML link relations
|
// FIXME: This accepts any kind of string, and does not filter to HTML link relations
|
||||||
fn activitystreams_rel(&self) -> impl Iterator<Item = AResult<String>>;
|
fn activitystreams_rel_lenient(&self) -> impl Iterator<Item = AResult<String>>;
|
||||||
|
|
||||||
fn activitystreams_mediatype(&self) -> Option<AResult<MediaType>>;
|
fn activitystreams_mediatype(&self) -> Option<AResult<MediaType>>;
|
||||||
|
|
||||||
|
|
|
@ -233,7 +233,7 @@ async fn test_link_rel() {
|
||||||
let mut rels = {
|
let mut rels = {
|
||||||
use acrate_astreams::activitystreams::StreamsLink;
|
use acrate_astreams::activitystreams::StreamsLink;
|
||||||
|
|
||||||
node.activitystreams_rel()
|
node.activitystreams_rel_lenient()
|
||||||
.map(|v| v
|
.map(|v| v
|
||||||
.expect("Property `rel` failed to process")
|
.expect("Property `rel` failed to process")
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue