aboutsummaryrefslogtreecommitdiff
path: root/resources/profile.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--resources/profile.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/profile.go b/resources/profile.go
index 23b2844..090075c 100644
--- a/resources/profile.go
+++ b/resources/profile.go
@@ -1,6 +1,7 @@
package resources
import (
+ "fmt"
"net/url"
"path"
@@ -10,7 +11,7 @@ import (
func RenderProfile(name, domain string) (map[string]interface{}, error) {
u, err := url.Parse(path.Join("https://", domain, "actors", name, "inbox"))
if err != nil {
- panic(err)
+ return nil, fmt.Errorf("could not partse url: %w", err)
}
inb := streams.NewActivityStreamsInboxProperty()