Making the test work
This commit is contained in:
		
					parent
					
						
							
								32a4ac0c11
							
						
					
				
			
			
				commit
				
					
						d2feb1ff7f
					
				
			
		
					 3 changed files with 13 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -2041,7 +2041,7 @@ function api_statuses_repeat($type)
 | 
			
		|||
	Logger::log('API: api_statuses_repeat: '.$id);
 | 
			
		||||
 | 
			
		||||
	$fields = ['uri-id', 'network', 'body', 'title', 'author-name', 'author-link', 'author-avatar', 'guid', 'created', 'plink'];
 | 
			
		||||
	$item = Post::selectFirst($fields, ['id' => $id, 'private' => [Item::PUBLIC, Item::UNLISTED]]);
 | 
			
		||||
	$item = Item::selectFirst($fields, ['id' => $id, 'private' => [Item::PUBLIC, Item::UNLISTED]]);
 | 
			
		||||
 | 
			
		||||
	if (DBA::isResult($item) && $item['body'] != "") {
 | 
			
		||||
		if (in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::TWITTER])) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue