Merge pull request #10496 from annando/subscribe

Subscribe to contacts from a remote AP account
This commit is contained in:
Hypolite Petovan
2021-07-14 06:45:25 -04:00
committed by GitHub
7 changed files with 276 additions and 296 deletions
+2 -11
View File
@@ -476,20 +476,11 @@ class User
*/
public static function getDefaultGroup($uid, $network = '')
{
$default_group = 0;
if ($network == Protocol::OSTATUS) {
$default_group = DI::pConfig()->get($uid, "ostatus", "default_group");
}
if ($default_group != 0) {
return $default_group;
}
$user = DBA::selectFirst('user', ['def_gid'], ['uid' => $uid]);
if (DBA::isResult($user)) {
$default_group = $user["def_gid"];
} else {
$default_group = 0;
}
return $default_group;