kopia lustrzana https://github.com/nextcloud/social
				
				
				
			hide DM on home timeline
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/768/head
							rodzic
							
								
									554364e493
								
							
						
					
					
						commit
						dd1613463b
					
				| 
						 | 
				
			
			@ -124,8 +124,6 @@ class PostService {
 | 
			
		|||
		$this->streamService->assignItem($note, $actor, $post->getType());
 | 
			
		||||
 | 
			
		||||
		$note->setAttributedTo($actor->getId());
 | 
			
		||||
//		$this->configService->getSocialUrl() . '@' . $actor->getPreferredUsername()
 | 
			
		||||
 | 
			
		||||
		$note->setContent(htmlentities($post->getContent(), ENT_QUOTES));
 | 
			
		||||
 | 
			
		||||
		$this->generateDocumentsFromAttachments($note, $post);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -257,6 +257,7 @@ class StreamService {
 | 
			
		|||
		if ($type === Stream::TYPE_DIRECT) {
 | 
			
		||||
			$instancePath->setPriority(InstancePath::PRIORITY_HIGH);
 | 
			
		||||
			$stream->addToArray($actor->getId());
 | 
			
		||||
			$stream->setHiddenOnTimeline(true);
 | 
			
		||||
		} else {
 | 
			
		||||
			$stream->addCc($actor->getId());
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue