Fix from bug introduct by 7e0178d
for echomails
This commit is contained in:
parent
bf21671a1f
commit
65b2a2d519
@ -11,7 +11,7 @@ use Illuminate\Support\Facades\Log;
|
|||||||
use Illuminate\Support\MessageBag;
|
use Illuminate\Support\MessageBag;
|
||||||
|
|
||||||
use App\Classes\FTN\Message;
|
use App\Classes\FTN\Message;
|
||||||
use App\Models\Address;
|
use App\Models\{Address,Echomail};
|
||||||
|
|
||||||
trait MessageAttributes
|
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)]);
|
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
|
// @todo Dont bundle mail to nodes that have been disabled, or addresses that have been deleted
|
||||||
return Message::packMessage($this);
|
return Message::packMessage($this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user