Function lemmy_apub::fetcher::search::search_by_apub_id [−][src]
pub async fn search_by_apub_id(
query: &str,
local_user_view: Option<LocalUserView>,
context: &LemmyContext
) -> Result<ResolveObjectResponse, LemmyError>
Expand description
Attempt to parse the query as URL, and fetch an ActivityPub object from it.
Some working examples for use with the docker/federation/
setup:
http://lemmy_alpha:8541/c/main, or !main@lemmy_alpha:8541
http://lemmy_beta:8551/u/lemmy_alpha, or @lemmy_beta@lemmy_beta:8551
http://lemmy_gamma:8561/post/3
http://lemmy_delta:8571/comment/2