]> git.mxchange.org Git - friendica.git/commitdiff
Support newline as block contact separator
authorMichael Vogel <icarus@dabo.de>
Sun, 19 Jul 2020 01:21:15 +0000 (03:21 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 19 Jul 2020 01:21:15 +0000 (03:21 +0200)
include/conversation.php

index 8507c5ba977919407f46ff50004f373154959b15..8050296a564a652fc82176c0748841e9c35b27c8 100644 (file)
@@ -316,7 +316,7 @@ function conv_get_blocklist()
                return [];
        }
 
                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 [];
        }
        if (empty($str_blocked)) {
                return [];
        }