We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f341102 commit f49d22dCopy full SHA for f49d22d
public/scripts/form.js
@@ -51,12 +51,18 @@ function isAttachmentsInputValid(data) {
51
data.get('pollOptionD');
52
const linkAttached = data.get('linkAttachment');
53
const hasMediaAttachment = data.has('attachmentType[]');
54
+ const autoPublishText = data.get('autoPublishText');
55
56
if (pollAttached && linkAttached) {
57
alert('Link attachments and poll attachments cannot be used together.');
58
return false;
59
}
60
61
+ if (hasMediaAttachment && autoPublishText) {
62
+ alert('Media attachments cannot be automatically published.')
63
+ return false;
64
+ }
65
+
66
if (hasMediaAttachment && linkAttached) {
67
alert('Link attachments can only be used with text posts.')
68
0 commit comments