diff --git a/client/js/views/post_upload_view.js b/client/js/views/post_upload_view.js index b64fe260..b4d0c409 100644 --- a/client/js/views/post_upload_view.js +++ b/client/js/views/post_upload_view.js @@ -283,8 +283,10 @@ class PostUploadView extends events.EventTarget { uploadable.safety = safetyNode.value; } - uploadable.anonymous = - rowNode.querySelector('.anonymous input').checked; + const anonymousNode = rowNode.querySelector('.anonymous input:checked'); + if (anonymousNode) { + uploadable.anonymous = true; + } uploadable.flags = []; if (rowNode.querySelector('.loop-video input:checked')) {