mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:10:12 +00:00
Bugfix: "default_group" behaviour wasn't implemented correctly
This commit is contained in:
parent
a7d6fa1bc9
commit
d6a79abb68
5 changed files with 17 additions and 23 deletions
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
require_once("include/Scrape.php");
|
||||
require_once("include/socgraph.php");
|
||||
require_once('include/group.php');
|
||||
|
||||
function update_contact($id) {
|
||||
/*
|
||||
|
@ -259,10 +260,8 @@ function new_contact($uid,$url,$interactive = false) {
|
|||
$result['cid'] = $contact_id;
|
||||
|
||||
$def_gid = get_default_group($uid, $contact["network"]);
|
||||
if (intval($def_gid)) {
|
||||
require_once('include/group.php');
|
||||
if (intval($def_gid))
|
||||
group_add_member($uid, '', $contact_id, $def_gid);
|
||||
}
|
||||
|
||||
require_once("include/Photo.php");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue