diff options
author | 2021-05-29 19:36:54 +0200 | |
---|---|---|
committer | 2021-05-29 19:36:54 +0200 | |
commit | 0fe853b1ee644703e2273ed4ce331cfd377af268 (patch) | |
tree | 4ada75ed683fa5ed302957c61aa91f4cf409ca01 /internal/federation/federator.go | |
parent | federate account updates (diff) | |
download | gotosocial-0fe853b1ee644703e2273ed4ce331cfd377af268.tar.xz |
first implementation of search feature
Diffstat (limited to 'internal/federation/federator.go')
-rw-r--r-- | internal/federation/federator.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/federation/federator.go b/internal/federation/federator.go index 149f68426..016a6fb68 100644 --- a/internal/federation/federator.go +++ b/internal/federation/federator.go @@ -40,6 +40,9 @@ type Federator interface { // AuthenticateFederatedRequest can be used to check the authenticity of incoming http-signed requests for federating resources. // The given username will be used to create a transport for making outgoing requests. See the implementation for more detailed comments. AuthenticateFederatedRequest(username string, r *http.Request) (*url.URL, error) + // FingerRemoteAccount performs a webfinger lookup for a remote account, using the .well-known path. It will return the ActivityPub URI for that + // account, or an error if it doesn't exist or can't be retrieved. + FingerRemoteAccount(requestingUsername string, targetUsername string, targetDomain string) (*url.URL, error) // DereferenceRemoteAccount can be used to get the representation of a remote account, based on the account ID (which is a URI). // The given username will be used to create a transport for making outgoing requests. See the implementation for more detailed comments. DereferenceRemoteAccount(username string, remoteAccountID *url.URL) (typeutils.Accountable, error) |