mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Bugfix: "default_group" behaviour wasn't implemented correctly
This commit is contained in:
parent
bc720c0918
commit
535f382c4e
5 changed files with 17 additions and 23 deletions
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
|
||||
require_once('include/enotify.php');
|
||||
require_once('include/group.php');
|
||||
|
||||
function dfrn_confirm_post(&$a,$handsfree = null) {
|
||||
|
||||
|
@ -491,10 +492,8 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
|
|||
}
|
||||
|
||||
$def_gid = get_default_group($uid, $contact["network"]);
|
||||
if($contact && intval($def_gid)) {
|
||||
require_once('include/group.php');
|
||||
if($contact && intval($def_gid))
|
||||
group_add_member($uid, '', $contact['id'], $def_gid);
|
||||
}
|
||||
|
||||
// Let's send our user to the contact editor in case they want to
|
||||
// do anything special with this new friend.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue