aboutsummaryrefslogtreecommitdiff
path: root/webfinger
diff options
context:
space:
mode:
authorFChannel <>2022-05-03 22:42:24 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit493fc8e025fd613d9faf0b573d610e4a0e0c0228 (patch)
treefd7f217ca407c1aa8e584db26d0a95944c23b034 /webfinger
parent328c9150228156c04d1045469c7dbcd7b5f4fedf (diff)
creating boards works
Diffstat (limited to 'webfinger')
-rw-r--r--webfinger/util.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/webfinger/util.go b/webfinger/util.go
index cd16943..0fc4948 100644
--- a/webfinger/util.go
+++ b/webfinger/util.go
@@ -36,7 +36,7 @@ func (a BoardSortAsc) Len() int { return len(a) }
func (a BoardSortAsc) Less(i, j int) bool { return a[i].Name < a[j].Name }
func (a BoardSortAsc) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
-func GetActorByName(name string) activitypub.Actor {
+func GetActorByNameFromBoardCollection(name string) activitypub.Actor {
var actor activitypub.Actor
boards, _ := GetBoardCollection()
for _, e := range boards {
@@ -102,7 +102,7 @@ func GetActorFromPath(location string, prefix string) (activitypub.Actor, error)
}
if nActor.Id == "" {
- nActor = GetActorByName(actor)
+ nActor = GetActorByNameFromBoardCollection(actor)
}
return nActor, nil