diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-09-25 14:37:32 +0200 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-09-25 14:37:32 +0200 |
commit | 06d12a24ddd186942d2eca741fe89c853c11fc2c (patch) | |
tree | 837ef0c0ce8a784a0ff54e923376829e7c756312 /lib | |
parent | 7a92cf157420a558e054dfd92bebc81896da018f (diff) |
fixing
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/NavigationController.php | 7 | ||||
-rw-r--r-- | lib/Db/StreamRequest.php | 11 | ||||
-rw-r--r-- | lib/Service/AccountService.php | 4 |
3 files changed, 19 insertions, 3 deletions
diff --git a/lib/Controller/NavigationController.php b/lib/Controller/NavigationController.php index 66ef0cc9..de22a4f1 100644 --- a/lib/Controller/NavigationController.php +++ b/lib/Controller/NavigationController.php @@ -55,6 +55,12 @@ use OCP\IL10N; use OCP\IRequest; use OCP\IURLGenerator; + +/** + * Class NavigationController + * + * @package OCA\Social\Controller + */ class NavigationController extends Controller { @@ -88,6 +94,7 @@ class NavigationController extends Controller { /** @var CheckService */ private $checkService; + /** * NavigationController constructor. * diff --git a/lib/Db/StreamRequest.php b/lib/Db/StreamRequest.php index e9680055..fe71ddb0 100644 --- a/lib/Db/StreamRequest.php +++ b/lib/Db/StreamRequest.php @@ -47,7 +47,11 @@ use OCA\Social\Model\ActivityPub\Object\Document; use OCA\Social\Model\ActivityPub\Object\Like; use OCA\Social\Model\ActivityPub\Object\Note; use OCA\Social\Model\ActivityPub\Stream; +use OCA\Social\Service\ConfigService; +use OCA\Social\Service\MiscService; use OCP\DB\QueryBuilder\IQueryBuilder; +use OCP\IDBConnection; +use OCP\ILogger; /** @@ -66,15 +70,16 @@ class StreamRequest extends StreamRequestBuilder { * StreamRequest constructor. * * @param IDBConnection $connection + * @param ILogger $logger * @param StreamDestRequest $streamDestRequest * @param ConfigService $configService * @param MiscService $miscService */ public function __construct( - IDBConnection $connection, StreamDestRequest $streamDestRequest, ConfigService $configService, - MiscService $miscService + IDBConnection $connection, ILogger $logger, StreamDestRequest $streamDestRequest, + ConfigService $configService, MiscService $miscService ) { - parent::__construct($connection, $configService, $miscService); + parent::__construct($connection, $logger, $configService, $miscService); $this->streamDestRequest = $streamDestRequest; } diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php index 774c5772..94b7bce0 100644 --- a/lib/Service/AccountService.php +++ b/lib/Service/AccountService.php @@ -38,6 +38,7 @@ use OCA\Social\Db\FollowsRequest; use OCA\Social\Db\StreamRequest; use OCA\Social\Exceptions\AccountAlreadyExistsException; use OCA\Social\Exceptions\ActorDoesNotExistException; +use OCA\Social\Exceptions\ItemAlreadyExistsException; use OCA\Social\Exceptions\ItemUnknownException; use OCA\Social\Exceptions\SocialAppConfigException; use OCA\Social\Exceptions\UrlCloudException; @@ -161,6 +162,7 @@ class AccountService { * @throws NoUserException * @throws SocialAppConfigException * @throws UrlCloudException + * @throws ItemAlreadyExistsException */ public function getActorFromUserId(string $userId, bool $create = false): Person { $this->miscService->confirmUserId($userId); @@ -192,6 +194,7 @@ class AccountService { * @param string $username * * @throws AccountAlreadyExistsException + * @throws ItemAlreadyExistsException * @throws NoUserException * @throws SocialAppConfigException * @throws UrlCloudException @@ -238,6 +241,7 @@ class AccountService { * * @throws SocialAppConfigException * @throws UrlCloudException + * @throws ItemAlreadyExistsException */ public function cacheLocalActorByUsername(string $username) { try { |