From 77b9bb30c476abecfc342ebb16b2a6ada8362d1c Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 26 May 2024 12:08:01 +1000 Subject: [PATCH] Another fix to make sure site generated echomail is not exported to ourselfs --- app/Models/Echomail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Echomail.php b/app/Models/Echomail.php index e96f024..74bfd2e 100644 --- a/app/Models/Echomail.php +++ b/app/Models/Echomail.php @@ -182,7 +182,7 @@ final class Echomail extends Model implements Packet ->addresses ->filter(function($item) use ($model) { return $model->echoarea->can_read($item->security); }) ->pluck('id') - ->diff(our_address($model->fftn->zone->domain)) + ->diff(our_address($model->fftn->zone->domain)->pluck('id')) ->diff($seenby); if ($exportto->count()) {