Export ToPublic constant
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
Namespace = "https://www.w3.org/ns/activitystreams"
|
Namespace = "https://www.w3.org/ns/activitystreams"
|
||||||
toPublic = "https://www.w3.org/ns/activitystreams#Public"
|
ToPublic = "https://www.w3.org/ns/activitystreams#Public"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Extensions = map[string]string{}
|
var Extensions = map[string]string{}
|
||||||
@@ -146,7 +146,7 @@ func NewNoteObject() *Object {
|
|||||||
Type: "Note",
|
Type: "Note",
|
||||||
},
|
},
|
||||||
To: []string{
|
To: []string{
|
||||||
toPublic,
|
ToPublic,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
return &o
|
return &o
|
||||||
@@ -160,7 +160,7 @@ func NewArticleObject() *Object {
|
|||||||
Type: "Article",
|
Type: "Article",
|
||||||
},
|
},
|
||||||
To: []string{
|
To: []string{
|
||||||
toPublic,
|
ToPublic,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
return &o
|
return &o
|
||||||
|
|||||||
Reference in New Issue
Block a user