mirror of
https://github.com/friendica/friendica
synced 2025-04-22 19:50:11 +00:00
Issue 11891: Enable search for user@domain.tld
This commit is contained in:
parent
38cf0666bd
commit
4b8c631216
2 changed files with 6 additions and 4 deletions
|
@ -64,7 +64,7 @@ class BaseSearch extends BaseModule
|
|||
$header = '';
|
||||
|
||||
if (strpos($search, '@') === 0) {
|
||||
$search = substr($search, 1);
|
||||
$search = trim(substr($search, 1));
|
||||
$type = Search::TYPE_PEOPLE;
|
||||
$header = DI::l10n()->t('People Search - %s', $search);
|
||||
|
||||
|
@ -74,7 +74,7 @@ class BaseSearch extends BaseModule
|
|||
}
|
||||
|
||||
if (strpos($search, '!') === 0) {
|
||||
$search = substr($search, 1);
|
||||
$search = trim(substr($search, 1));
|
||||
$type = Search::TYPE_FORUM;
|
||||
$header = DI::l10n()->t('Forum Search - %s', $search);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue