mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Replace init_groups_visitor with Group::getIdsByContactId
This commit is contained in:
parent
09467be02a
commit
e16852c2f5
8 changed files with 16 additions and 28 deletions
|
@ -12,6 +12,7 @@ use Friendica\Core\PConfig;
|
|||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Group;
|
||||
|
||||
require_once 'include/event.php';
|
||||
require_once 'include/redir.php';
|
||||
|
@ -127,7 +128,7 @@ function cal_content(App $a) {
|
|||
}
|
||||
}
|
||||
if($contact_id) {
|
||||
$groups = init_groups_visitor($contact_id);
|
||||
$groups = Group::getIdsByContactId($contact_id);
|
||||
$r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||
intval($contact_id),
|
||||
intval($a->profile['profile_uid'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue