From b11da7f3c0949f75ef0555e4dfe6981522639500 Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 14 Apr 2024 03:48:37 +0200 Subject: [PATCH] fix: oops i mixed up some fields --- src/model/user.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/model/user.rs b/src/model/user.rs index 9d08cd69..695737a2 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -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(),