1
0
Fork 0
forked from alemi/upub

fix(apb): audience is object, not actor

This commit is contained in:
əlemi 2024-06-06 20:38:28 +02:00
parent 56110ea917
commit ffa92b4f61
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -43,7 +43,7 @@ pub trait Object : Base {
fn object_type(&self) -> Field<ObjectType> { Err(FieldErr("type")) } fn object_type(&self) -> Field<ObjectType> { Err(FieldErr("type")) }
fn attachment(&self) -> Node<Self::Object> { Node::Empty } fn attachment(&self) -> Node<Self::Object> { Node::Empty }
fn attributed_to(&self) -> Node<Self::Actor> { Node::Empty } fn attributed_to(&self) -> Node<Self::Actor> { Node::Empty }
fn audience(&self) -> Node<Self::Actor> { Node::Empty } fn audience(&self) -> Node<Self::Object> { Node::Empty }
fn content(&self) -> Field<&str> { Err(FieldErr("content")) } // TODO handle language maps fn content(&self) -> Field<&str> { Err(FieldErr("content")) } // TODO handle language maps
fn context(&self) -> Node<Self::Object> { Node::Empty } fn context(&self) -> Node<Self::Object> { Node::Empty }
fn name(&self) -> Field<&str> { Err(FieldErr("name")) } // also in link // TODO handle language maps fn name(&self) -> Field<&str> { Err(FieldErr("name")) } // also in link // TODO handle language maps