hide DM on home timeline

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
feature/noid/sql-rewrite-0929^2
Maxence Lange 2019-09-30 12:39:33 +02:00
rodzic 554364e493
commit dd1613463b
2 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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);

Wyświetl plik

@ -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());
}