summaryrefslogtreecommitdiffstats
path: root/lib/Controller
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-04-19 07:50:05 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-05-03 16:31:15 -0100
commit2fb50cbefbe45d0aebeabcbf190a44e6438bed40 (patch)
treeb5d51132cd2892dcc8f5e969164cabf8d1bf5f74 /lib/Controller
parent47b22680211ba56cf95dee74402fab6394c834fd (diff)
fix token creation
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/LocalController.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Controller/LocalController.php b/lib/Controller/LocalController.php
index d28cd49b..1098c2e8 100644
--- a/lib/Controller/LocalController.php
+++ b/lib/Controller/LocalController.php
@@ -161,7 +161,7 @@ class LocalController extends Controller {
$post->setType($this->get('type', $data, Stream::TYPE_PUBLIC));
$post->setHashtags($this->getArray('hashtags', $data, []));
- /** @var ACore $activity */
+ $token = '';
$activity = $this->postService->createPost($post, $token);
return $this->success(
@@ -214,6 +214,8 @@ class LocalController extends Controller {
public function postBoost(string $postId): DataResponse {
try {
$this->initViewer(true);
+
+ $token = '';
$announce = $this->boostService->create($this->viewer, $postId, $token);
return $this->success(
@@ -241,7 +243,8 @@ class LocalController extends Controller {
try {
$this->initViewer(true);
- $token = $this->boostService->delete($this->viewer, $postId, $announce);
+ $token = '';
+ $announce = $this->boostService->delete($this->viewer, $postId, $token);
return $this->success(
[