From ac1c933afec7c0cec0b799f7ebb6399e3c867c41 Mon Sep 17 00:00:00 2001 From: ChrissiQ <1127719+ChrissiQ@users.noreply.github.com> Date: Fri, 2 Jul 2021 14:43:09 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=20=20EmbedDescription=20should?= =?UTF-8?q?=20update=20if=20empty,=20not=20if=20populated.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/extensions/Embeddable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/Embeddable.php b/src/extensions/Embeddable.php index a29a8aa..2028278 100644 --- a/src/extensions/Embeddable.php +++ b/src/extensions/Embeddable.php @@ -157,7 +157,7 @@ public function onBeforeWrite() if ($owner->EmbedTitle == '') { $owner->EmbedTitle = $embed->Title; } - if (!$owner->EmbedDescription == '') { + if ($owner->EmbedDescription == '') { $owner->EmbedDescription = $embed->Description; } $changes = $owner->getChangedFields();