]> git.mxchange.org Git - friendica.git/blobdiff - mod/match.php
Replace "notice" calls
[friendica.git] / mod / match.php
index fcaf8b529de5761bfd6702cea84bd733f6e4d8a9..5a5d3be93d9941e67ce7ae6d8eb32eee8ad62d23 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -59,7 +59,7 @@ function match_content(App $a)
                return '';
        }
        if (!$profile['pub_keywords'] && (!$profile['prv_keywords'])) {
-               notice(DI::l10n()->t('No keywords to match. Please add keywords to your profile.'));
+               DI::sysmsg()->addNotice(DI::l10n()->t('No keywords to match. Please add keywords to your profile.'));
                return '';
        }
 
@@ -83,7 +83,7 @@ function match_content(App $a)
                        continue;
                }
 
-               $msearch = json_decode(DI::httpRequest()->post($server . '/msearch', $params)->getBody());
+               $msearch = json_decode(DI::httpClient()->post($server . '/msearch', $params)->getBody());
                if (!empty($msearch)) {
                        $entries = match_get_contacts($msearch, $entries, $limit);
                }