Skip to content

Commit

Permalink
Adding the external_user_ID parameter
Browse files Browse the repository at this point in the history
conditionally if it’s not empty
  • Loading branch information
kwonye committed Jul 31, 2018
1 parent 81edf5d commit b620788
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ public void onErrorResponse(VolleyError volleyError) {

Map<String, String> params = new HashMap<>();
params.put("keyring_connection_ID", Long.toString(keyringConnectionId));
params.put("external_user_ID", externalUserId);
if (!externalUserId.isEmpty()) {
params.put("external_user_ID", externalUserId);
}
String path = String.format(Locale.ROOT, "/sites/%d/publicize-connections/new", siteId);
WordPress.getRestClientUtilsV1_1().post(path, params, null, listener, errorListener);
}
Expand Down

0 comments on commit b620788

Please sign in to comment.