From 955f5ac0dfdf4b9498da4de300bc6bcc52cc4c84 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Wed, 21 Apr 2021 11:32:54 +0800 Subject: [PATCH] Block encoded thumbnail URLs ('data:image') These only work in the `selectThumbnail` component. If it's small enough, it'll get past the transaction limit-check, but ultimately it doesn't appear correctly in the claim list. It'll probably appear correctly if we tweak the ClaimPreview code, but since this also fails the Google Video metadata test, I think we should disallow this. ## Issue 5923 --- ui/component/selectThumbnail/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/component/selectThumbnail/view.jsx b/ui/component/selectThumbnail/view.jsx index a96fc11a0..dcda827f2 100644 --- a/ui/component/selectThumbnail/view.jsx +++ b/ui/component/selectThumbnail/view.jsx @@ -35,7 +35,7 @@ class SelectThumbnail extends React.PureComponent { updatePublishForm({ thumbnail: newThumbnail, - thumbnailError: false, + thumbnailError: newThumbnail.startsWith('data:image'), }); }