backend for xcvr appview
2
fork

Configure Feed

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

fix deref for nil avatar

+6 -2
+6 -2
server/internal/recordmanager/profile.go
··· 23 23 } 24 24 25 25 func convertToPu(p lex.ProfileRecord, did string) *db.ProfileUpdate { 26 - avatar := p.Avatar.Ref.String() 26 + var avatar *string 27 + if p.Avatar != nil { 28 + ava := p.Avatar.Ref.String() 29 + avatar = &ava 30 + } 27 31 return &db.ProfileUpdate{ 28 32 DID: did, 29 33 Name: p.DisplayName, ··· 34 38 UpdateStatus: true, 35 39 Color: p.Color, 36 40 UpdateColor: true, 37 - Avatar: &avatar, 41 + Avatar: avatar, 38 42 UpdateAvatar: true, 39 43 Mime: &p.Avatar.MimeType, 40 44 UpdateMime: true,