api: fix bug in showing starred logic

This commit is contained in:
Jimmy Zelinskie 2015-02-23 15:36:05 -05:00
parent cb592dd5a3
commit a9fe26fb56

View file

@ -133,7 +133,7 @@ class RepositoryList(ApiResource):
'description': repo_obj.description,
'is_public': repo_obj.visibility.name == 'public',
}
if get_authenticated_user():
if get_authenticated_user() and args['private']:
repo['is_starred'] = repo_obj.id in star_lookup
return repo