summaryrefslogtreecommitdiffstats
path: root/lib/Command
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-04-08 19:13:55 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-05-03 16:31:15 -0100
commita39d22353532703403ae2c15012c8bac68e939ca (patch)
tree16c40bd96d8e4a7d6d170397d6cf6fc681176aa2 /lib/Command
parentb4d773940c9d6c601a2dc9a2ba39c0f6348e9545 (diff)
fixing boost
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Command')
-rw-r--r--lib/Command/NoteBoost.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Command/NoteBoost.php b/lib/Command/NoteBoost.php
index b435c10c..ff9be421 100644
--- a/lib/Command/NoteBoost.php
+++ b/lib/Command/NoteBoost.php
@@ -134,11 +134,11 @@ class NoteBoost extends Base {
$actor = $this->accountService->getActorFromUserId($userId);
$this->noteService->setViewer($actor);
-
- if ($input->getOption('unboost') === null) {
+ $token = '';
+ if (!$input->getOption('unboost')) {
$activity = $this->boostService->create($actor, $noteId, $token);
} else {
- $activity= $this->boostService->delete($actor, $noteId, $token );
+ $activity= $this->boostService->delete($actor, $noteId, $token);
}
echo 'object: ' . json_encode($activity, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n";