mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-01 13:51:10 +00:00
Update crates/apub/src/fetcher/search.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
This commit is contained in:
parent
51d5439f59
commit
884ee2bbe1
1 changed files with 4 additions and 4 deletions
|
@ -122,14 +122,14 @@ impl Object for SearchableObjects {
|
|||
Ok(match self {
|
||||
SearchableObjects::Post(p) => SearchableKinds::Page(Box::new(p.into_json(data).await?)),
|
||||
SearchableObjects::Comment(c) => SearchableKinds::Note(c.into_json(data).await?),
|
||||
SearchableObjects::PersonOrCommunity(pc) => match *pc {
|
||||
SearchableObjects::PersonOrCommunity(pc) => SearchableKinds::PersonOrGroup(Box::new(match *pc {
|
||||
UserOrCommunity::User(p) => {
|
||||
SearchableKinds::PersonOrGroup(Box::new(PersonOrGroup::Person(p.into_json(data).await?)))
|
||||
PersonOrGroup::Person(p.into_json(data).await?)
|
||||
}
|
||||
UserOrCommunity::Community(c) => {
|
||||
SearchableKinds::PersonOrGroup(Box::new(PersonOrGroup::Group(c.into_json(data).await?)))
|
||||
PersonOrGroup::Group(c.into_json(data).await?)
|
||||
}
|
||||
},
|
||||
})),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue