Make resolve_object not require auth #3685 (#3716)
authormarsara9 <1316726+marsara9@users.noreply.github.com>
Wed, 26 Jul 2023 16:17:42 +0000 (12:17 -0400)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2023 16:17:42 +0000 (12:17 -0400)
commitdc4572460e8458753907dc9659bdd015e2f7bb27
treeff054958c04d2f73505c60cff6dc2a20e178208b
parentafac3ee7ffb0c577a7572b8e5d06080e59a57b71
Make resolve_object not require auth #3685 (#3716)

* Resolves issue #3685

If user isn't authenticated with resolve_object, only allow a local search instead of possibly making an http request.

* Making sure to validate auth before doing a potential remote lookup.
crates/api_common/src/site.rs
crates/apub/src/api/resolve_object.rs
crates/apub/src/fetcher/search.rs