kopia lustrzana https://github.com/nextcloud/social
hide DM on home timeline
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/771/head
rodzic
3c9e6b9d23
commit
b9b3932c0b
|
@ -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