Optionally, also find TIC sender address in tic sending node's list of addresses
This commit is contained in:
parent
dacd8be4c2
commit
b6a538f961
@ -219,6 +219,8 @@ class Tic extends FTNBase
|
|||||||
case 'from':
|
case 'from':
|
||||||
if (($ao=Address::findFTN($m[2])) && ((! $aid) || ($ao->zone->domain_id === Address::findOrFail(hexdec($aid))->zone->domain_id)))
|
if (($ao=Address::findFTN($m[2])) && ((! $aid) || ($ao->zone->domain_id === Address::findOrFail(hexdec($aid))->zone->domain_id)))
|
||||||
$this->file->fftn_id = $ao->id;
|
$this->file->fftn_id = $ao->id;
|
||||||
|
elseif ($aid && ($x=Address::findOrFail(hexdec($aid))) && ($y=$x->system->akas->search(fn($item)=>str_starts_with($item->ftn,$m[2])) !== FALSE))
|
||||||
|
$this->file->fftn_id = $x->system->akas->get($y)->id;
|
||||||
else
|
else
|
||||||
throw new ModelNotFoundException(sprintf('FTN Address [%s] not found or sender mismatch',$m[2]));
|
throw new ModelNotFoundException(sprintf('FTN Address [%s] not found or sender mismatch',$m[2]));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user