Fix "Reminder needs content".
Certain fields were not being checked correctly for content.
This commit is contained in:
parent
cb25d02cdf
commit
9405cfcee9
@ -308,15 +308,17 @@ async function serialize_reminder(node, mode) {
|
|||||||
const embed_title = node.querySelector('textarea[name="embed_title"]').value;
|
const embed_title = node.querySelector('textarea[name="embed_title"]').value;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
attachment === null &&
|
|
||||||
content.length == 0 &&
|
content.length == 0 &&
|
||||||
embed_author_url === null &&
|
|
||||||
embed_author.length == 0 &&
|
embed_author.length == 0 &&
|
||||||
|
embed_title.length == 0 &&
|
||||||
embed_description.length == 0 &&
|
embed_description.length == 0 &&
|
||||||
embed_footer.length == 0 &&
|
embed_footer.length == 0 &&
|
||||||
|
embed_author_url === null &&
|
||||||
embed_footer_url === null &&
|
embed_footer_url === null &&
|
||||||
embed_image_url === null &&
|
embed_image_url === null &&
|
||||||
embed_thumbnail_url === null
|
embed_thumbnail_url === null &&
|
||||||
|
fields.length == 0 &&
|
||||||
|
attachment === null
|
||||||
) {
|
) {
|
||||||
return { error: "Reminder needs content." };
|
return { error: "Reminder needs content." };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user