mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
Handled missing html property for NFT Oembed response
refs https://github.com/TryGhost/Team/issues/1211 Since we have switched to rendering the NFT card outside of the OEmbed response we no longer include a html property. This check would throw for missing HTML so we've updated it to not include NFT cards
This commit is contained in:
parent
b8dd7c6af2
commit
747e6c9533
@ -177,7 +177,7 @@ export default Component.extend({
|
|||||||
this.send('insertAsBookmark', response);
|
this.send('insertAsBookmark', response);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!response.html) {
|
if (!response.html && response.card_type !== 'nft') {
|
||||||
throw 'No HTML returned';
|
throw 'No HTML returned';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user