From ff74589abff38ad68c616a7295fa8f34545825d1 Mon Sep 17 00:00:00 2001 From: Daniela Matos de Carvalho Date: Thu, 1 Mar 2018 20:03:59 +0000 Subject: [PATCH] feat: add notifyFollowers flag --- lib/mediumClient.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/mediumClient.js b/lib/mediumClient.js index 1bb1255..8a32320 100644 --- a/lib/mediumClient.js +++ b/lib/mediumClient.js @@ -231,8 +231,10 @@ MediumClient.prototype.getContributorsForPublication = function (options, callba * content: string, * tags: Array., * canonicalUrl: string, + * publishedAt: string, * publishStatus: PostPublishStatus, - * license: PostLicense + * license: PostLicense, + * notifyFollowers: bool * }} options * @param {NodeCallback} callback */ @@ -249,7 +251,8 @@ MediumClient.prototype.createPost = function (options, callback) { canonicalUrl: options.canonicalUrl, publishedAt: options.publishedAt, publishStatus: options.publishStatus, - license: options.license + license: options.license, + notifyFollowers: options.notifyFollowers } }, callback) } @@ -270,8 +273,10 @@ MediumClient.prototype.createPost = function (options, callback) { * content: string, * tags: Array., * canonicalUrl: string, + * publishedAt: string, * publishStatus: PostPublishStatus, - * license: PostLicense + * license: PostLicense, + * notifyFollowers: bool * }} options * @param {NodeCallback} callback */ @@ -288,7 +293,8 @@ MediumClient.prototype.createPostInPublication = function (options, callback) { canonicalUrl: options.canonicalUrl, publishedAt: options.publishedAt, publishStatus: options.publishStatus, - license: options.license + license: options.license, + notifyFollowers: options.notifyFollowers } }, callback) }