Use atom:author/atom:uri as profile-link in Feed::import
- Use atom:author/atom:id as profile-id
This commit is contained in:
		
					parent
					
						
							
								94a71d9ffc
							
						
					
				
			
			
				commit
				
					
						a6a3c268bb
					
				
			
		
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -123,7 +123,13 @@ class Feed {
 | 
			
		|||
				$author["author-name"] = $value;
 | 
			
		||||
			}
 | 
			
		||||
			if ($simulate) {
 | 
			
		||||
				$author["author-id"] = XML::getFirstNodeValue($xpath, '/atom:feed/atom:author/atom:uri/text()');
 | 
			
		||||
				$author["author-id"] = XML::getFirstNodeValue($xpath, '/atom:feed/atom:author/atom:id/text()');
 | 
			
		||||
 | 
			
		||||
				// See https://tools.ietf.org/html/rfc4287#section-3.2.2
 | 
			
		||||
				$value = XML::getFirstNodeValue($xpath, 'atom:author/atom:uri/text()');
 | 
			
		||||
				if ($value != "") {
 | 
			
		||||
					$author["author-link"] = $value;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				$value = XML::getFirstNodeValue($xpath, 'atom:author/poco:preferredUsername/text()');
 | 
			
		||||
				if ($value != "") {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue