fixed logic in api_author_has friends
Merge branch 'master' of https://github.com/efferifick/CMPUT404-project-socialdistribution