fix: oops i mixed up some fields

This commit is contained in:
əlemi 2024-04-14 03:48:37 +02:00
parent a735e16f73
commit b11da7f3c0
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -46,10 +46,10 @@ impl Model {
actor_type: object.actor_type().ok_or(super::FieldError("type"))?,
name: object.name().map(|x| x.to_string()),
summary: object.summary().map(|x| x.to_string()),
icon: object.icon().id(),
icon: object.icon().get().map(|x| x.url().id().unwrap_or_default()),
image: object.image().get().map(|x| x.url().id().unwrap_or_default()),
inbox: object.inbox().get().map(|x| x.url().id().unwrap_or_default()),
outbox: object.inbox().id(),
inbox: object.inbox().id(),
outbox: object.outbox().id(),
shared_inbox: None, // TODO!!! parse endpoints
followers: object.followers().id(),
following: object.following().id(),