follow and accept_follow hooks

This commit is contained in:
friendica
2013-11-21 17:49:14 -08:00
parent 8cdbd0e2a6
commit f2435ed4cd
2 changed files with 12 additions and 0 deletions

View File

@@ -175,6 +175,10 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
proc_run('php', 'include/notifier.php', 'permission_update', $result['abook']['abook_id']);
}
$arr = array('channel_id' => $uid, 'abook' => $result['abook']);
call_hooks('follow', $arr);
/** If there is a default group for this channel, add this member to it */
if($default_group) {