Skip to content

Commit

Permalink
fix: Set image correctly in link previews (#5950)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian authored and bennycode committed Feb 28, 2019
1 parent 6667c43 commit 5d88f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/links/LinkPreviewRepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ z.links.LinkPreviewRepository = class LinkPreviewRepository {
return this._uploadPreviewImage(openGraphImage.data)
.then(asset => {
linkPreview.article[z.cryptography.PROTO_MESSAGE_TYPE.LINK_PREVIEW_IMAGE] = asset; // deprecated
linkPreview.image[z.cryptography.PROTO_MESSAGE_TYPE.LINK_PREVIEW_IMAGE] = asset;
linkPreview[z.cryptography.PROTO_MESSAGE_TYPE.LINK_PREVIEW_IMAGE] = asset;
return linkPreview;
})
.catch(error => {
Expand Down

0 comments on commit 5d88f78

Please sign in to comment.