summaryrefslogtreecommitdiffstats
path: root/lib/Command
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-01-16 12:06:20 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-01-16 12:06:20 -0100
commit4a6c8f12af0dbb76bc0bc3f91158ffaecd453ead (patch)
treeb53717b86264c0705886c6e30914ed1f16171dee /lib/Command
parent3a1ccc4c87450e02c968dde81a7932f5fce2d1ce (diff)
cache Actor on followed/unfollowed + following/unfollowing
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Command')
-rw-r--r--lib/Command/NoteCreate.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Command/NoteCreate.php b/lib/Command/NoteCreate.php
index 5b12d52b..1d16de9d 100644
--- a/lib/Command/NoteCreate.php
+++ b/lib/Command/NoteCreate.php
@@ -128,7 +128,8 @@ class NoteCreate extends Base {
$replyTo = $input->getOption('replyTo');
$type = $input->getOption('type');
- $post = new Post($userId);
+ $actor = $this->accountService->getActorFromUserId($userId);
+ $post = new Post($actor);
$post->setContent($content);
$post->setType(($type === null) ? '' : $type);
$post->setReplyTo(($replyTo === null) ? '' : $replyTo);