From ff1d7ddc3f5e386b9c8107456c54ca5f985c7b4b Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 8 Jan 2023 09:11:14 -0500 Subject: rename last bit of profile to actor --- views/actor.go | 4 ++-- views/helpers.go | 4 ++-- views/outbox.go | 2 +- views/webfinger.go | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'views') diff --git a/views/actor.go b/views/actor.go index 36f1f0c..3069dda 100644 --- a/views/actor.go +++ b/views/actor.go @@ -22,12 +22,12 @@ func RenderActor(name, domain, pem, mediaType, summary string) (map[string]inter outboxProp := streams.NewActivityStreamsOutboxProperty() outboxProp.SetIRI(outbox) - actorUrl, err := urls.UrlProfile(name, domain) + actorUrl, err := urls.UrlActor(name, domain) if err != nil { return nil, err } - actorUrlKey, err := urls.UrlProfileKey(name, domain) + actorUrlKey, err := urls.UrlActorKey(name, domain) if err != nil { return nil, err } diff --git a/views/helpers.go b/views/helpers.go index 96c81bc..4d20056 100644 --- a/views/helpers.go +++ b/views/helpers.go @@ -24,7 +24,7 @@ func activityObjectNote(name, domain string, v models.OutboxItem) (vocab.Activit contentProp.AppendXMLSchemaString(string(v.Content)) note.SetActivityStreamsContent(contentProp) - actorUrl, err := urls.UrlProfile(name, domain) + actorUrl, err := urls.UrlActor(name, domain) if err != nil { return nil, err } @@ -81,7 +81,7 @@ func activityObjectCreate(name, domain string, v models.OutboxItem, note vocab.A publishedProp.Set(v.CreatedAt) crea.SetActivityStreamsPublished(publishedProp) - actorUrl, err := urls.UrlProfile(name, domain) + actorUrl, err := urls.UrlActor(name, domain) if err != nil { return nil, err } diff --git a/views/outbox.go b/views/outbox.go index 37afed1..fcdf08e 100644 --- a/views/outbox.go +++ b/views/outbox.go @@ -16,7 +16,7 @@ func RenderOutboxCollection(name, domain string, page []models.OutboxItem) (map[ return nil, err } - actorUrl, err := urls.UrlProfile(name, domain) + actorUrl, err := urls.UrlActor(name, domain) if err != nil { return nil, err } diff --git a/views/webfinger.go b/views/webfinger.go index 47c1223..f500bc0 100644 --- a/views/webfinger.go +++ b/views/webfinger.go @@ -19,7 +19,7 @@ type WebfingerResource struct { } func RenderWebfinger(name, domain, hostname string) (*WebfingerResource, error) { - actorUrl, err := urls.UrlProfile(name, domain) + actorUrl, err := urls.UrlActor(name, domain) if err != nil { return nil, err } -- cgit v1.2.3