mirror of
https://github.com/friendica/friendica
synced 2025-04-20 05:10:11 +00:00
Use the function from the contact template instead
This commit is contained in:
parent
91b0f2c486
commit
893f6bd692
7 changed files with 23 additions and 33 deletions
|
@ -22,7 +22,6 @@
|
|||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Content\ContactSelector;
|
||||
use Friendica\Content\Pager;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\Search;
|
||||
|
@ -125,9 +124,9 @@ class BaseSearch extends BaseModule
|
|||
|
||||
// in case the result is a contact result, add a contact-specific entry
|
||||
if ($result instanceof ContactResult) {
|
||||
$contact = Model\Contact::getByURL($result->getUrl());
|
||||
$contact = Model\Contact::getByURLForUser($result->getUrl(), local_user());
|
||||
if (!empty($contact)) {
|
||||
$entries[] = Model\Contact::getTemplateData($contact, ++$id);
|
||||
$entries[] = Contact::getContactTemplateVars($contact, ++$id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue