Using a new database root directory

This commit is contained in:
2019-09-09 08:46:43 +09:00
parent 6bfe81fdc3
commit 8bfb1e0b4d
10 changed files with 36 additions and 13 deletions

View File

@ -107,6 +107,11 @@ func (list *UserFollows) UsersWhoFollowBack() []*User {
return friends
}
// GetID returns the ID.
func (list *UserFollows) GetID() string {
return list.UserID
}
// UserFollowerCountMap returns a map of user ID keys and their corresping number of followers as the value.
func UserFollowerCountMap() map[string]int {
followCount := map[string]int{}