Restructured item insert
This commit is contained in:
		
					parent
					
						
							
								ba9d5b83e4
							
						
					
				
			
			
				commit
				
					
						06da3084f5
					
				
			
		
					 2 changed files with 366 additions and 384 deletions
				
			
		|  | @ -1001,7 +1001,7 @@ class OStatus | |||
| 
 | ||||
| 		// Even more worse workaround for GNU Social ;-)
 | ||||
| 		if ($xml == '') { | ||||
| 			$related_guess = OStatus::convertHref($related_uri); | ||||
| 			$related_guess = self::convertHref($related_uri); | ||||
| 			$curlResult = Network::curl(str_replace('/notice/', '/api/statuses/show/', $related_guess).'.atom'); | ||||
| 
 | ||||
| 			if ($curlResult->isSuccess()) { | ||||
|  | @ -1175,7 +1175,7 @@ class OStatus | |||
| 	 * | ||||
| 	 * @return string URL in the format http(s)://.... | ||||
| 	 */ | ||||
| 	public static function convertHref($href) | ||||
| 	private static function convertHref($href) | ||||
| 	{ | ||||
| 		$elements = explode(":", $href); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue