의 미러
https://github.com/friendica/friendica
synced 2025-09-07 21:21:52 +02:00
Avoid blocks with invalid entries in superblock (#5635)
This commit is contained in:
부모
fc3aa9e58b
커밋
dfe4413463
1개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
|
@ -412,7 +412,8 @@ function conv_get_blocklist()
|
|||
$blocklist = [];
|
||||
|
||||
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)) {
|
||||
$blocklist[] = $cid;
|
||||
}
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue