Includes and calls
Remove includes and update function calls
This commit is contained in:
		
					parent
					
						
							
								edfb08a779
							
						
					
				
			
			
				commit
				
					
						a59ab5552e
					
				
			
		
					 9 changed files with 25 additions and 24 deletions
				
			
		| 
						 | 
				
			
			@ -14,7 +14,6 @@ use Friendica\Network\Probe;
 | 
			
		|||
 | 
			
		||||
require_once 'include/contact_selectors.php';
 | 
			
		||||
require_once 'include/contact_widgets.php';
 | 
			
		||||
require_once 'include/follow.php';
 | 
			
		||||
require_once 'mod/proxy.php';
 | 
			
		||||
 | 
			
		||||
function contacts_init(App $a)
 | 
			
		||||
| 
						 | 
				
			
			@ -243,7 +242,7 @@ function _contact_update($contact_id)
 | 
			
		|||
	$uid = $contact["uid"];
 | 
			
		||||
 | 
			
		||||
	if ($r[0]["network"] == NETWORK_OSTATUS) {
 | 
			
		||||
		$result = new_contact($uid, $contact["url"], false, $contact["network"]);
 | 
			
		||||
		$result = Contact::new($uid, $contact["url"], false, $contact["network"]);
 | 
			
		||||
 | 
			
		||||
		if ($result['success']) {
 | 
			
		||||
			q("UPDATE `contact` SET `subhub` = 1 WHERE `id` = %d", intval($contact_id));
 | 
			
		||||
| 
						 | 
				
			
			@ -275,7 +274,7 @@ function _contact_update_profile($contact_id)
 | 
			
		|||
	$update = array();
 | 
			
		||||
 | 
			
		||||
	if ($data["network"] == NETWORK_OSTATUS) {
 | 
			
		||||
		$result = new_contact($uid, $data["url"], false);
 | 
			
		||||
		$result = Contact::new($uid, $data["url"], false);
 | 
			
		||||
 | 
			
		||||
		if ($result['success']) {
 | 
			
		||||
			$update["subhub"] = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue