Skip to content

Commit

Permalink
Merge pull request #40 from taylanpince/master
Browse files Browse the repository at this point in the history
Add photoset_layout as an option to create_photo
  • Loading branch information
jasonpenny authored Jul 3, 2018
2 parents 250ad07 + cd19bab commit 7654e63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytumblr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def _post_valid_options(self, post_type=None):
if post_type == 'text':
valid += ['title', 'body']
elif post_type == 'photo':
valid += ['caption', 'link', 'source', 'data']
valid += ['caption', 'link', 'source', 'data', 'photoset_layout']
elif post_type == 'quote':
valid += ['quote', 'source']
elif post_type == 'link':
Expand Down Expand Up @@ -524,7 +524,7 @@ def _send_post(self, blogname, params):
url = "/v2/blog/{0}/post".format(blogname)
valid_options = self._post_valid_options(params.get('type', None))

if 'tags' in params:
if len(params.get("tags", [])) > 0:
# Take a list of tags and make them acceptable for upload
params['tags'] = ",".join(params['tags'])

Expand Down

0 comments on commit 7654e63

Please sign in to comment.