+26
-57
appview/db/follow.go
+26
-57
appview/db/follow.go
···query := `select user_did, subject_did, followed_at, rkey from follows where user_did = ? and subject_did = ?`························-func getFollowStatuses(e Execer, userDid string, subjectDids []string) (map[string]FollowStatus, error) {···-func GetFollowStatuses(e Execer, userDid string, subjectDids []string) (map[string]FollowStatus, error) {
···query := `select user_did, subject_did, followed_at, rkey from follows where user_did = ? and subject_did = ?`······+func GetFollowerFollowingCounts(e Execer, dids []string) (map[string]models.FollowStats, error) {··················+func getFollowStatuses(e Execer, userDid string, subjectDids []string) (map[string]models.FollowStatus, error) {···+func GetFollowStatuses(e Execer, userDid string, subjectDids []string) (map[string]models.FollowStatus, error) {
+6
-5
appview/db/timeline.go
+6
-5
appview/db/timeline.go
············
············
+1
-1
appview/ingester.go
+1
-1
appview/ingester.go
+38
appview/models/follow.go
+38
appview/models/follow.go
···
···
+3
-2
appview/notify/merged_notifier.go
+3
-2
appview/notify/merged_notifier.go
······
······
+5
-4
appview/notify/notifier.go
+5
-4
appview/notify/notifier.go
·········
·········
+3
-3
appview/pages/pages.go
+3
-3
appview/pages/pages.go
·········
·········
+3
-2
appview/posthog/notifier.go
+3
-2
appview/posthog/notifier.go
·········
·········
+4
-3
appview/state/follow.go
+4
-3
appview/state/follow.go
············
············
+9
-8
appview/state/profile.go
+9
-8
appview/state/profile.go
···············-followPage, err := s.followPage(r, db.GetFollowers, func(f db.Follow) string { return f.UserDid })···-followPage, err := s.followPage(r, db.GetFollowing, func(f db.Follow) string { return f.SubjectDid })
···············+followPage, err := s.followPage(r, db.GetFollowers, func(f models.Follow) string { return f.UserDid })···+followPage, err := s.followPage(r, db.GetFollowing, func(f models.Follow) string { return f.SubjectDid })