From c75dbfd3d7b78850dfcb1440841c5bef808b21ef Mon Sep 17 00:00:00 2001
From: Hypolite Petovan <hypolite@mrpetovan.com>
Date: Sat, 25 Jun 2022 05:03:02 -0400
Subject: [PATCH] Update default value for LocalRelationship->priority to avoid
 null values

- Address https://github.com/friendica/friendica/issues/11630#issuecomment-1166192993
---
 src/Contact/LocalRelationship/Factory/LocalRelationship.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Contact/LocalRelationship/Factory/LocalRelationship.php b/src/Contact/LocalRelationship/Factory/LocalRelationship.php
index 74ddd8e7a3..5e53f5b467 100644
--- a/src/Contact/LocalRelationship/Factory/LocalRelationship.php
+++ b/src/Contact/LocalRelationship/Factory/LocalRelationship.php
@@ -52,7 +52,7 @@ class LocalRelationship extends BaseFactory implements ICanCreateFromTableRow
 			$row['hub-verify'] ?? '',
 			$row['protocol'] ?? Protocol::PHANTOM,
 			$row['rating'] ?? null,
-			$row['priority'] ?? null
+			$row['priority'] ?? 0
 		);
 	}
 }
-- 
2.39.5