Fix from bug introduct by 7e0178d for echomails
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 38s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m44s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2024-05-26 22:08:39 +10:00
parent bf21671a1f
commit 65b2a2d519

View File

@ -11,7 +11,7 @@ use Illuminate\Support\Facades\Log;
use Illuminate\Support\MessageBag;
use App\Classes\FTN\Message;
use App\Models\Address;
use App\Models\{Address,Echomail};
trait MessageAttributes
{
@ -169,6 +169,10 @@ trait MessageAttributes
{
Log::debug(sprintf('%s:+ Bundling [%s] for [%s]',self::LOGKEY,$this->id,$ao->ftn),['type'=>get_class($this)]);
// For echomail, our tftn is this address
if ($this instanceof Echomail)
$this->tftn = $ao;
// @todo Dont bundle mail to nodes that have been disabled, or addresses that have been deleted
return Message::packMessage($this);
}