Check $profile variable in mod/match
- Addresses https://github.com/friendica/friendica/issues/6337#issuecomment-470733015
This commit is contained in:
@@ -75,7 +75,7 @@ function match_content(App $a)
|
||||
$profile = $msearch->results[$i];
|
||||
|
||||
// Already known contact
|
||||
if (Contact::getIdForURL($profile->url, local_user(), true)) {
|
||||
if (!$profile || Contact::getIdForURL($profile->url, local_user(), true)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user