ActivityPub: Support for incoming picture descriptions
This commit is contained in:
		
					parent
					
						
							
								eddcb5ebe9
							
						
					
				
			
			
				commit
				
					
						ab7db9944d
					
				
			
		
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -111,7 +111,11 @@ class Processor
 | 
			
		|||
					continue;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				$item['body'] .= "\n[img]" . $attach['url'] . '[/img]';
 | 
			
		||||
				if (empty($attach['name'])) {
 | 
			
		||||
					$item['body'] .= "\n[img]" . $attach['url'] . '[/img]';
 | 
			
		||||
				} else {
 | 
			
		||||
					$item['body'] .= "\n[img=" . $attach['url'] . ']' . $attach['name'] . '[/img]';
 | 
			
		||||
				}
 | 
			
		||||
			} else {
 | 
			
		||||
				if (!empty($item["attach"])) {
 | 
			
		||||
					$item["attach"] .= ',';
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue