Skip to content

Commit

Permalink
add URL to .org sites
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Mar 8, 2016
1 parent 78b37f9 commit 68618c2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ private SitesModel sitesResponseToSitesModel(Object response, String username, S
}

private SiteModel updateSiteFromOptions(Object response, SiteModel oldModel) {
// TODO: plenty of other options to read here
Map<?, ?> blogOptions = (Map<?, ?>) response;
oldModel.setName(getOption(blogOptions, "blog_title", String.class));
oldModel.setUrl(getOption(blogOptions, "home_url", String.class));
oldModel.setSoftwareVersion(getOption(blogOptions, "software_version", String.class));
oldModel.setIsFeaturedImageSupported(getOption(blogOptions, "post_thumbnail", Boolean.class));
return oldModel;
Expand Down

0 comments on commit 68618c2

Please sign in to comment.