Skip to content

Commit

Permalink
fix show_authors. owner replaced user
Browse files Browse the repository at this point in the history
User field seems to only be used on a commit by commit basis in history.
https://developer.github.com/v3/gists/#get-a-single-gist
This doesn't show all_authors but rather the current owner which seems to have been the initial intention of the code.
Should fix condemil#151 and re-enable feature to be used.
Closes condemil#145 as well.
  • Loading branch information
vmuriart committed Mar 21, 2017
1 parent c9f48dd commit b338f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def gist_title(gist):
title = list(gist['files'].keys())[0]

if settings.get('show_authors'):
return [title, gist.get('user').get('login')]
return [title, gist.get('owner').get('login')]
else:
return [title]

Expand Down

0 comments on commit b338f8a

Please sign in to comment.