From bf446e1186f7c7ea68b2b039b7abe01a12f6ae52 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 7 Jan 2025 16:46:07 +1100 Subject: [PATCH] Fix message_path when the source is not in the DB --- app/Traits/MessagePath.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Traits/MessagePath.php b/app/Traits/MessagePath.php index afbbfa8..48c14da 100644 --- a/app/Traits/MessagePath.php +++ b/app/Traits/MessagePath.php @@ -50,7 +50,7 @@ trait MessagePath $reply .= "No path information? This would be normal if this message came directly to the hub\r"; $reply .= "+----------------------------------------------------------------[ ORIGIN ]-+\r"; - $reply .= sprintf("%s (%s)\r",($mo->getRelationValue('origin')?->value) ?: '*NO ORIGIN*',$mo->fftn->ftn4d); + $reply .= sprintf("%s (%s)\r",($mo->getRelationValue('origin')?->value) ?: '*NO ORIGIN*',$mo->fftn?->ftn4d ?: $mo->set_fftn); $reply .= "+-----------------------------------------------------------[ END MESSAGE ]-+\r";