Skip to content

Commit

Permalink
Fix featured image upload on self-hosted sites
Browse files Browse the repository at this point in the history
  • Loading branch information
malinajirka committed Jul 22, 2019
1 parent 39529a7 commit e3be5bb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public void onResponse(@NonNull Call call, @NonNull Response response) throws IO
responseMedia.setId(media.getId());
responseMedia.setLocalSiteId(site.getId());
responseMedia.setLocalPostId(media.getLocalPostId());
responseMedia.setMarkedLocallyAsFeatured(media.getMarkedLocallyAsFeatured());

notifyMediaUploaded(responseMedia, null);
}
Expand Down Expand Up @@ -319,6 +320,7 @@ public void onResponse(Object response) {
responseMedia.setId(media.getId());
responseMedia.setLocalSiteId(site.getId());
responseMedia.setLocalPostId(media.getLocalPostId());
responseMedia.setMarkedLocallyAsFeatured(media.getMarkedLocallyAsFeatured());

if (isFreshUpload) {
notifyMediaUploaded(responseMedia, null);
Expand Down

0 comments on commit e3be5bb

Please sign in to comment.