api: fix bug in showing starred logic
This commit is contained in:
parent
cb592dd5a3
commit
a9fe26fb56
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Reference in a new issue