Interactively go through your bluesky follow graph and decide to keep or remove follow records
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix panic caused by missing display name or description

yemou 4e7d7971 5a436eac

+12 -1
+12 -1
main.go
··· 49 49 } 50 50 51 51 profile := profileRecord.Value.Val.(*bsky.ActorProfile) 52 + 53 + var displayName string 54 + if profile.DisplayName != nil { 55 + displayName = *profile.DisplayName 56 + } 57 + 58 + var description string 59 + if profile.Description != nil { 60 + description = *profile.Description 61 + } 62 + 52 63 blobClient := atclient.NewAPIClient(doc.DIDDocument().Service[0].ServiceEndpoint) 53 64 avatar, err := atproto.SyncGetBlob(ctx, blobClient, 54 65 profile.Avatar.Ref.String(), ··· 60 71 return string(doc.Handle), *profile.DisplayName, *profile.Description, nil 61 72 } 62 73 63 - return string(doc.Handle), *profile.DisplayName, *profile.Description, avatar 74 + return string(doc.Handle), displayName, description, avatar 64 75 } 65 76 66 77 func main() {