From d6a35c699558d8a592a23c2ba33bf48e5cad808e Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 19 Jul 2020 03:21:15 +0200 Subject: [PATCH] Support newline as block contact separator --- include/conversation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/conversation.php b/include/conversation.php index 8507c5ba97..8050296a56 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -316,7 +316,7 @@ function conv_get_blocklist() return []; } - $str_blocked = DI::pConfig()->get(local_user(), 'system', 'blocked'); + $str_blocked = str_replace(["\n", "\r"], ",", DI::pConfig()->get(local_user(), 'system', 'blocked')); if (empty($str_blocked)) { return []; } -- 2.39.5