Skip to content

Commit

Permalink
Revert "Update media insertion to send caption information."
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell authored Apr 20, 2020
1 parent ee116f1 commit c993d10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -833,10 +833,7 @@ public void appendMediaFiles(Map<String, MediaFile> mediaList) {
int mediaId = isNetworkUrl ? Integer.valueOf(mediaEntry.getValue().getMediaId())
: mediaEntry.getValue().getId();
String url = isNetworkUrl ? mediaEntry.getKey() : "file://" + mediaEntry.getKey();
rnMediaList.add(createRNMediaUsingMimeType(mediaId,
url,
mediaEntry.getValue().getMimeType(),
mediaEntry.getValue().getCaption()));
rnMediaList.add(createRNMediaUsingMimeType(mediaId, url, mediaEntry.getValue().getMimeType()));
}

getGutenbergContainerFragment().appendUploadMediaFiles(rnMediaList);
Expand Down

0 comments on commit c993d10

Please sign in to comment.