Changed Url to URL
This commit is contained in:
parent
baa209cfd0
commit
40cf589f8d
2 changed files with 10 additions and 10 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
type ObjectId string
|
||||
|
||||
const (
|
||||
ActivityBaseURI Uri = Uri("https://www.w3.org/ns/activitystreams#")
|
||||
ActivityBaseURI URI = URI("https://www.w3.org/ns/activitystreams#")
|
||||
ObjectType string = "Object"
|
||||
LinkType string = "Link"
|
||||
ActivityType string = "Activity"
|
||||
|
@ -172,7 +172,7 @@ type Link struct {
|
|||
// Identifies an entity that provides a preview of this object.
|
||||
Preview ObjectOrLink `jsonld:"preview,omitempty"`
|
||||
// The target resource pointed to by a Link.
|
||||
Href Uri `jsonld:"href,omitempty"`
|
||||
Href URI `jsonld:"href,omitempty"`
|
||||
// Hints as to the language used by the target resource.
|
||||
// Value must be a [BCP47](https://tools.ietf.org/html/bcp47) Language-Tag.
|
||||
HrefLang LangRef `jsonld:"hrefLang,omitempty"`
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package activitypub
|
||||
|
||||
type Iri Uri
|
||||
type Uri string
|
||||
type Iri URI
|
||||
type URI string
|
||||
|
|
Reference in a new issue