We now store the conversation as well
This commit is contained in:
		
					parent
					
						
							
								abf39ff9cf
							
						
					
				
			
			
				commit
				
					
						5d6eb4670a
					
				
			
		
					 5 changed files with 10 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -695,7 +695,7 @@ class Processor
 | 
			
		|||
					Logger::warning('Unknown parent item.', ['uri' => $parent_uri]);
 | 
			
		||||
					return false;
 | 
			
		||||
				}
 | 
			
		||||
				if (($parent['private'] == Item::PRIVATE) && ($parent['private'] != Item::PRIVATE)) {
 | 
			
		||||
				if (($item['private'] == Item::PRIVATE) && ($parent['private'] != Item::PRIVATE)) {
 | 
			
		||||
					Logger::warning('Item is private but the parent is not. Dropping.', ['item-uri' => $item['uri'], 'thr-parent' => $item['thr-parent']]);
 | 
			
		||||
					return false;
 | 
			
		||||
				}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -57,6 +57,12 @@ class Queue
 | 
			
		|||
			$fields['in-reply-to-id'] = $activity['reply-to-id'];
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (!empty($activity['context'])) {
 | 
			
		||||
			$fields['conversation'] = $activity['context'];
 | 
			
		||||
		} elseif(!empty($activity['conversation'])) {
 | 
			
		||||
			$fields['conversation'] = $activity['conversation'];
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (!empty($activity['object_object_type'])) {
 | 
			
		||||
			$fields['object-object-type'] = $activity['object_object_type'];
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue