Fix for when Address::createFTN refuses to create an address
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 40s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m47s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
Deon George 2024-06-27 09:51:38 +10:00
parent f006d829f4
commit 41b6e3a4b0

View File

@ -431,8 +431,7 @@ abstract class Protocol
if ($so && $so->exists) { if ($so && $so->exists) {
foreach ($this->node->aka_other as $aka) foreach ($this->node->aka_other as $aka)
if (! Address::findFTN($aka)) { if ((! Address::findFTN($aka)) && ($oo=Address::createFTN($aka,$so))) {
$oo = Address::createFTN($aka,$so);
$oo->validated = TRUE; $oo->validated = TRUE;
$oo->save(); $oo->save();
} }