···
-
profileMap := make(map[string]Profile)
profiles, err := GetProfiles(e, FilterIn("did", subjects))
-
for _, p := range profiles {
followStatMap := make(map[string]FollowStats)
for _, s := range subjects {
···
var events []TimelineEvent
for _, f := range follows {
-
profile, _ := profileMap[f.SubjectDid]
followStatMap, _ := followStatMap[f.SubjectDid]
events = append(events, TimelineEvent{
FollowStats: &followStatMap,
···
profiles, err := GetProfiles(e, FilterIn("did", subjects))
followStatMap := make(map[string]FollowStats)
for _, s := range subjects {
···
var events []TimelineEvent
for _, f := range follows {
+
profile, _ := profiles[f.SubjectDid]
followStatMap, _ := followStatMap[f.SubjectDid]
events = append(events, TimelineEvent{
FollowStats: &followStatMap,