diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-04-23 10:43:41 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-05-03 16:31:15 -0100 |
commit | 9b0fcf7d70aee638f92057c5f56692534311f92b (patch) | |
tree | 562d7928c9dbe2dcc6fb7db52d50d932f1c313b1 /lib/Service | |
parent | a27ea99ff3ae7898c4e2cac394a45d95b2c6b3c9 (diff) |
fixing some token issues
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Service')
-rw-r--r-- | lib/Service/BoostService.php | 4 | ||||
-rw-r--r-- | lib/Service/PostService.php | 2 | ||||
-rw-r--r-- | lib/Service/RequestQueueService.php | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/lib/Service/BoostService.php b/lib/Service/BoostService.php index dfd53a0a..60e3b4c0 100644 --- a/lib/Service/BoostService.php +++ b/lib/Service/BoostService.php @@ -112,7 +112,7 @@ class BoostService { * @throws SocialAppConfigException * @throws Exception */ - public function create(Person $actor, string $postId, string &$token = ''): ACore { + public function create(Person $actor, string $postId, &$token = ''): ACore { try { return $this->get($actor, $postId); @@ -169,7 +169,7 @@ class BoostService { * @throws NoteNotFoundException * @throws SocialAppConfigException */ - public function delete(Person $actor, string $postId, string &$token = ''): ACore { + public function delete(Person $actor, string $postId, &$token = ''): ACore { $undo = new Undo(); $this->noteService->assignItem($undo, $actor, Stream::TYPE_PUBLIC); $undo->setActor($actor); diff --git a/lib/Service/PostService.php b/lib/Service/PostService.php index 3e6dba3a..b72c907b 100644 --- a/lib/Service/PostService.php +++ b/lib/Service/PostService.php @@ -104,7 +104,7 @@ class PostService { * @throws RequestServerException * @throws SocialAppConfigException */ - public function createPost(Post $post, string &$token = ''): ACore { + public function createPost(Post $post, &$token = ''): ACore { $note = new Note(); $actor = $post->getActor(); $this->noteService->assignItem($note, $actor, $post->getType()); diff --git a/lib/Service/RequestQueueService.php b/lib/Service/RequestQueueService.php index ee5b1754..e73b4a47 100644 --- a/lib/Service/RequestQueueService.php +++ b/lib/Service/RequestQueueService.php @@ -100,6 +100,10 @@ class RequestQueueService { $this->requestQueueRequest->multiple($requests); + if ($token === '') { + $token = '<request token not needed>'; + } + return $token; } |