go fmt changes
This commit is contained in:
parent
1ccf106616
commit
0a1567cdd4
3
typer.go
3
typer.go
|
@ -77,6 +77,7 @@ var onActor = CollectionTypes{
|
|||
Following,
|
||||
Followers,
|
||||
}
|
||||
|
||||
func (t CollectionTypes) Contains(typ CollectionType) bool {
|
||||
for _, tt := range t {
|
||||
if strings.ToLower(string(typ)) == string(tt) {
|
||||
|
@ -127,13 +128,13 @@ func (t CollectionType) IRI(i pub.Item) pub.IRI {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
if len(iri) == 0 {
|
||||
iri = pub.IRI(fmt.Sprintf("%s/%s", i.GetLink(), t))
|
||||
}
|
||||
return iri
|
||||
}
|
||||
|
||||
|
||||
func getValidActivityCollection(typ string) CollectionType {
|
||||
t := CollectionType(typ)
|
||||
if validActivityCollection.Contains(t) {
|
||||
|
|
Reference in a new issue