mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
Avoid blocks with invalid entries in superblock (#5635)
This commit is contained in:
parent
fc3aa9e58b
commit
dfe4413463
1 changed files with 2 additions and 1 deletions
|
@ -412,7 +412,8 @@ function conv_get_blocklist()
|
||||||
$blocklist = [];
|
$blocklist = [];
|
||||||
|
|
||||||
foreach (explode(',', $str_blocked) as $entry) {
|
foreach (explode(',', $str_blocked) as $entry) {
|
||||||
$cid = Contact::getIdForURL(trim($entry), 0, true);
|
// The 4th parameter guarantees that there always will be a public contact entry
|
||||||
|
$cid = Contact::getIdForURL(trim($entry), 0, true, ['url' => trim($entry)]);
|
||||||
if (!empty($cid)) {
|
if (!empty($cid)) {
|
||||||
$blocklist[] = $cid;
|
$blocklist[] = $cid;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue