fix: author name will be counted as content in embeds. Embeds will now be valid if they only have an author specified

This commit is contained in:
Kwoth
2024-10-19 19:21:00 +00:00
parent 9dd2997b0f
commit b136e7ff0e

View File

@@ -69,6 +69,7 @@ public abstract record SmartEmbedTextBase : SmartText
=> !string.IsNullOrWhiteSpace(Title)
|| !string.IsNullOrWhiteSpace(Description)
|| !string.IsNullOrWhiteSpace(Url)
|| !string.IsNullOrWhiteSpace(Author?.Name)
|| !string.IsNullOrWhiteSpace(Thumbnail)
|| !string.IsNullOrWhiteSpace(Image)
|| (Footer is not null