collection of golang services under the Red Dwarf umbrella server.reddwarf.app
bluesky reddwarf microcosm appview
15
fork

Configure Feed

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

labelmerge dont send nulls when empty array

+1 -1
+1 -1
cmd/labelmerge/handlers.go
··· 53 53 case result := <-promise.Response: 54 54 // convert FinalResponse -> QueryLabels_Output 55 55 // Flatten your map into a slice 56 - var flatLabels []*comatprototypes.LabelDefs_Label 56 + flatLabels := make([]*comatprototypes.LabelDefs_Label, 0) 57 57 for _, submap := range result.Labels { // result.Labels is map[labelerDID]map[subjectURI][]*Label 58 58 for _, labels := range submap { 59 59 flatLabels = append(flatLabels, SliceToPtrSlice(labels)...)