mirror of
https://github.com/friendica/friendica
synced 2025-04-22 19:50:11 +00:00
Issue 11487: IDN support added
This commit is contained in:
parent
e374c2e3da
commit
47808ab0e9
4 changed files with 32 additions and 45 deletions
|
@ -30,6 +30,7 @@ use Friendica\Model;
|
|||
use Friendica\Network\HTTPException;
|
||||
use Friendica\Object\Search\ContactResult;
|
||||
use Friendica\Object\Search\ResultList;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
/**
|
||||
* Base class for search modules
|
||||
|
@ -68,7 +69,7 @@ class BaseSearch extends BaseModule
|
|||
$header = DI::l10n()->t('People Search - %s', $search);
|
||||
|
||||
if (strrpos($search, '@') > 0) {
|
||||
$results = Search::getContactsFromProbe($search);
|
||||
$results = Search::getContactsFromProbe(Network::convertToIdn($search));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -78,6 +79,8 @@ class BaseSearch extends BaseModule
|
|||
$header = DI::l10n()->t('Forum Search - %s', $search);
|
||||
}
|
||||
|
||||
$search = Network::convertToIdn($search);
|
||||
|
||||
if (DI::mode()->isMobile()) {
|
||||
$itemsPerPage = DI::pConfig()->get(local_user(), 'system', 'itemspage_mobile_network',
|
||||
DI::config()->get('system', 'itemspage_network_mobile'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue