]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Directory.php
Some more API functions moved
[friendica.git] / src / Module / Directory.php
index b5c8e254f4c6abb4c0e935b8d860b62a94cb4cf0..0172612d51f0346c0a6f3a81d6ba06f39760aef3 100644 (file)
@@ -32,7 +32,6 @@ use Friendica\DI;
 use Friendica\Model;
 use Friendica\Model\Profile;
 use Friendica\Network\HTTPException;
-use Friendica\Util\Strings;
 
 /**
  * Shows the local directory of this node
@@ -59,9 +58,7 @@ class Directory extends BaseModule
 
                Nav::setSelected('directory');
 
-               $search = (!empty($_REQUEST['search']) ?
-                       Strings::escapeTags(trim(rawurldecode($_REQUEST['search']))) :
-                       '');
+               $search = trim(rawurldecode($_REQUEST['search'] ?? ''));
 
                $gDirPath = '';
                $dirURL = $config->get('system', 'directory');
@@ -76,12 +73,6 @@ class Directory extends BaseModule
                if ($profiles['total'] === 0) {
                        notice(DI::l10n()->t('No entries (some entries may be hidden).'));
                } else {
-                       if (in_array('small', $app->argv)) {
-                               $photo = 'thumb';
-                       } else {
-                               $photo = 'photo';
-                       }
-
                        foreach ($profiles['entries'] as $entry) {
                                $contact = Model\Contact::getByURLForUser($entry['url'], local_user());
                                if (!empty($contact)) {