// GetActor returns the actor for the given IRI.
//nolint:interfacer
GetActor returns the actor for the given IRI.
nolint:interfacer
// GetActor returns the actor for the given IRI . // nolint : interfacer
func (m *ActivityPubClient) GetActor(actorIRI *url.URL) (*vocab.ActorType, error) {
	if m.err != nil {
		return nil, m.err
	}
	actor, ok := m.actors[actorIRI.String()]
	if !ok {
		return nil, fmt.Errorf("not found")
	}
	return actor, nil
}
func ( m * ActivityPubClient ) GetActor ( actorIRI * url . URL ) ( * vocab . ActorType , error ) { if m . err != nil { return nil , m . err } actor , ok := m . actors [ actorIRI . String ( ) ] if ! ok { return nil , fmt . Errorf ( " " ) } return actor , nil }
GetActor returns the actor for the given IRI.
GetActor returns the actor for the given IRI .