aboutsummaryrefslogtreecommitdiff
path: root/backend/fetchers/profiles.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/fetchers/profiles.go')
-rw-r--r--backend/fetchers/profiles.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/backend/fetchers/profiles.go b/backend/fetchers/profiles.go
index c25dd97..9a1334a 100644
--- a/backend/fetchers/profiles.go
+++ b/backend/fetchers/profiles.go
@@ -47,13 +47,11 @@ func FetchHandle(did string) (string, error) {
func FetchProfile(did string, pdsURL string) (*general.Profile, error) {
recordURL := fmt.Sprintf("%s/xrpc/com.atproto.repo.getRecord?repo=%s&collection=app.bsky.actor.profile&rkey=self", pdsURL, did)
- fmt.Printf("Fetching profile from: %s\n", recordURL)
resp, err := http.Get(recordURL)
if err != nil {
return nil, err
}
defer resp.Body.Close()
- fmt.Printf("Response status: %d\n", resp.StatusCode)
if resp.StatusCode != 200 {
return nil, fmt.Errorf("profile fetch failed: %d", resp.StatusCode)
@@ -75,7 +73,6 @@ func FetchProfile(did string, pdsURL string) (*general.Profile, error) {
if err != nil {
return nil, err
}
- fmt.Printf("Unmarshaled value: %+v\n", response.Value)
var avatarURL, bannerURL string
if response.Value.Avatar != nil {