summaryrefslogtreecommitdiff
path: root/internal/federation/federator.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-05-28 19:57:04 +0200
committerLibravatar GitHub <noreply@github.com>2021-05-28 19:57:04 +0200
commit87177d840b9703f572392ef4bd0f5013fd5c3a77 (patch)
treec59388998d5defd5ec3577483f70736238953f72 /internal/federation/federator.go
parentNotifications (#34) (diff)
downloadgotosocial-87177d840b9703f572392ef4bd0f5013fd5c3a77.tar.xz
Announce/boost (#35)
Remote boosts incoming/outgoing now working.
Diffstat (limited to 'internal/federation/federator.go')
-rw-r--r--internal/federation/federator.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/federation/federator.go b/internal/federation/federator.go
index f2f223a65..149f68426 100644
--- a/internal/federation/federator.go
+++ b/internal/federation/federator.go
@@ -43,6 +43,9 @@ type Federator interface {
// 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)
+ // DereferenceRemoteStatus can be used to get the representation of a remote status, based on its 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.
+ DereferenceRemoteStatus(username string, remoteStatusID *url.URL) (typeutils.Statusable, error)
// GetTransportForUser returns a new transport initialized with the key credentials belonging to the given username.
// This can be used for making signed http requests.
//