mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-15 05:53:01 -06:00
[chore] remove type switch in Create() and instead move to FederatedCallbacks() (#3697)
* remove type switch in Create() and instead move to FederatedCallbacks()
* add missing (my bad!) federating wrapped callbacks behaviour
* add missing license header 😇
* fix create flag test to use correct function
This commit is contained in:
parent
bfe8144fda
commit
61141ac232
14 changed files with 610 additions and 433 deletions
|
|
@ -404,7 +404,8 @@ func (f *Federator) callForPubKey(
|
|||
pubKeyID *url.URL,
|
||||
) ([]byte, gtserror.WithCode) {
|
||||
// Use a transport to dereference the remote.
|
||||
trans, err := f.transportController.NewTransportForUsername(
|
||||
trans, err := f.transport.NewTransportForUsername(
|
||||
|
||||
// We're on a hot path: don't retry if req fails.
|
||||
gtscontext.SetFastFail(ctx),
|
||||
requestedUsername,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue