aboutsummaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-12-19 00:29:19 +0000
committerJulio Capote <jcapote@gmail.com>2022-12-19 00:29:19 +0000
commit2ee94a66d89de9eb0461f250251af7776aef9976 (patch)
tree9cb4a3800c18f4f6b5df84d6cb0d861ff6ae8afc /http
parent4f8325f5df55628544f13937975f38c6ef5d17ab (diff)
downloadcommunique-2ee94a66d89de9eb0461f250251af7776aef9976.tar.gz
cleanup
Diffstat (limited to 'http')
-rw-r--r--http/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/http/server.go b/http/server.go
index d8560bb..5e6f652 100644
--- a/http/server.go
+++ b/http/server.go
@@ -25,7 +25,7 @@ func (s *Server) Start(zapWriter io.Writer) {
// Webfinger
router.GET("/.well-known/webfinger", func(c *gin.Context) {
resourceParam := c.Query("resource")
- resource := s.registry.LookupResource(resourceParam)
+ resource, _ := s.registry.WebfingerResource(resourceParam)
if resource != nil {
c.JSON(http.StatusOK, resource)
} else {
@@ -37,7 +37,7 @@ func (s *Server) Start(zapWriter io.Writer) {
// "User" endpoint
router.GET("/actors/:actor", func(c *gin.Context) {
actorParam := c.Param("actor")
- resource, _ := s.registry.LookupByName(actorParam)
+ resource, _ := s.registry.Profile(actorParam)
if resource != nil {
c.JSON(http.StatusOK, resource)
} else {