mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-01 13:51:10 +00:00
Update crates/apub/src/fetcher/site_or_community_or_user.rs
Thanks, I like that better. Co-authored-by: dullbananas <dull.bananas0@gmail.com>
This commit is contained in:
parent
08a0a6d3ce
commit
51d5439f59
1 changed files with 5 additions and 6 deletions
|
@ -88,14 +88,13 @@ impl Object for SiteOrCommunityOrUser {
|
|||
SiteOrPersonOrGroup::Instance(a) => {
|
||||
SiteOrCommunityOrUser::Site(ApubSite::from_json(a, data).await?)
|
||||
}
|
||||
SiteOrPersonOrGroup::PersonOrGroup(a) => match a {
|
||||
PersonOrGroup::Person(p) => SiteOrCommunityOrUser::UserOrCommunity(UserOrCommunity::User(
|
||||
SiteOrPersonOrGroup::PersonOrGroup(a) => SiteOrCommunityOrUser::UserOrCommunity(match a {
|
||||
PersonOrGroup::Person(p) => UserOrCommunity::User(
|
||||
ApubPerson::from_json(p, data).await?,
|
||||
)),
|
||||
PersonOrGroup::Group(g) => SiteOrCommunityOrUser::UserOrCommunity(
|
||||
UserOrCommunity::Community(ApubCommunity::from_json(g, data).await?),
|
||||
),
|
||||
},
|
||||
PersonOrGroup::Group(g) =>
|
||||
UserOrCommunity::Community(ApubCommunity::from_json(g, data).await?),
|
||||
}),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue