Implemented friend getting logic server-side