Skip to content

Commit

Permalink
Merge pull request #306 from Selbosh/master
Browse files Browse the repository at this point in the history
Fix another create_post author edge case
  • Loading branch information
jjallaire authored Jan 30, 2021
2 parents a11d15d + 1e2ed95 commit a99e7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/create.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ create_post <- function(title,
# if we still don't have an author then auto-detect
if (is.null(author)) {
author <- list(author = list(list(name = fullname(fallback = "Unknown"))))
} else { # if author is given as argument to function
} else if (is.character(author)) { # if author is given as argument to function
author <- list(author = author)
}
# author to yaml
Expand Down

0 comments on commit a99e7d5

Please sign in to comment.