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
|
|
@ -20,13 +20,11 @@
|
|||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Content\ContactSelector;
|
||||
use Friendica\Content\Pager;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Module;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
|
|
@ -123,9 +121,9 @@ function common_content(App $a)
|
|||
|
||||
$entries = [];
|
||||
foreach ($common_friends as $common_friend) {
|
||||
$contact = Model\Contact::getByURL($common_friend['url']);
|
||||
$contact = Model\Contact::getByURLForUser($common_friend['url'], local_user());
|
||||
if (!empty($contact)) {
|
||||
$entries[] = Model\Contact::getTemplateData($contact, ++$id);
|
||||
$entries[] = Module\Contact::getContactTemplateVars($contact, ++$id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue