forked from kevadesu/forgejo
Rename to ActorData
This commit is contained in:
parent
09058c13c5
commit
78fc75135f
2 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@ type ActorData struct {
|
|||
port string // optional
|
||||
}
|
||||
|
||||
func (a ActorData) ValidateActor() error {
|
||||
func (a ActorData) ValidateActorData() error {
|
||||
|
||||
if a.schema == "" || a.host == "" {
|
||||
return fmt.Errorf("the actor ID was not valid: Invalid Schema or Host")
|
||||
|
@ -28,7 +28,7 @@ func (a ActorData) ValidateActor() error {
|
|||
|
||||
}
|
||||
|
||||
func ParseActor(actor string) (ActorData, error) {
|
||||
func ParseActorData(actor string) (ActorData, error) {
|
||||
u, err := url.Parse(actor)
|
||||
|
||||
// check if userID IRI is well formed url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue