Deleted utils.GetUser

This commit is contained in:
2019-11-17 16:59:34 +09:00
parent ad9870b1c1
commit daed4146ed
117 changed files with 178 additions and 271 deletions

View File

@ -166,3 +166,20 @@ func SortUsersFollowers(users []*User) map[string]int {
return followCount
}
// SameUser returns true or false depending on if the users are the same.
func SameUser(a *User, b *User) bool {
if a == nil {
return false
}
if b == nil {
return false
}
if a.ID == b.ID {
return true
}
return false
}