summaryrefslogtreecommitdiffstats
path: root/lib/Service
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-09-30 12:39:33 +0200
committerMaxence Lange <maxence@artificial-owl.com>2019-09-30 12:39:33 +0200
commitdd1613463b097d1b6fd47a63f0a71cfff02aee7e (patch)
tree2804ead87382732a91cc2ffafce489386b2caf4f /lib/Service
parent554364e49342ac3371fab6b02cc957d4168d7159 (diff)
hide DM on home timeline
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/PostService.php2
-rw-r--r--lib/Service/StreamService.php1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/Service/PostService.php b/lib/Service/PostService.php
index e346473b..d9222fb3 100644
--- a/lib/Service/PostService.php
+++ b/lib/Service/PostService.php
@@ -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);
diff --git a/lib/Service/StreamService.php b/lib/Service/StreamService.php
index 016244ac..14a2c104 100644
--- a/lib/Service/StreamService.php
+++ b/lib/Service/StreamService.php
@@ -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());
}