kopia lustrzana https://github.com/nextcloud/social
rodzic
7a92cf1574
commit
06d12a24dd
|
@ -55,6 +55,12 @@ use OCP\IL10N;
|
||||||
use OCP\IRequest;
|
use OCP\IRequest;
|
||||||
use OCP\IURLGenerator;
|
use OCP\IURLGenerator;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class NavigationController
|
||||||
|
*
|
||||||
|
* @package OCA\Social\Controller
|
||||||
|
*/
|
||||||
class NavigationController extends Controller {
|
class NavigationController extends Controller {
|
||||||
|
|
||||||
|
|
||||||
|
@ -88,6 +94,7 @@ class NavigationController extends Controller {
|
||||||
/** @var CheckService */
|
/** @var CheckService */
|
||||||
private $checkService;
|
private $checkService;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NavigationController constructor.
|
* NavigationController constructor.
|
||||||
*
|
*
|
||||||
|
|
|
@ -47,7 +47,11 @@ use OCA\Social\Model\ActivityPub\Object\Document;
|
||||||
use OCA\Social\Model\ActivityPub\Object\Like;
|
use OCA\Social\Model\ActivityPub\Object\Like;
|
||||||
use OCA\Social\Model\ActivityPub\Object\Note;
|
use OCA\Social\Model\ActivityPub\Object\Note;
|
||||||
use OCA\Social\Model\ActivityPub\Stream;
|
use OCA\Social\Model\ActivityPub\Stream;
|
||||||
|
use OCA\Social\Service\ConfigService;
|
||||||
|
use OCA\Social\Service\MiscService;
|
||||||
use OCP\DB\QueryBuilder\IQueryBuilder;
|
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||||
|
use OCP\IDBConnection;
|
||||||
|
use OCP\ILogger;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -66,15 +70,16 @@ class StreamRequest extends StreamRequestBuilder {
|
||||||
* StreamRequest constructor.
|
* StreamRequest constructor.
|
||||||
*
|
*
|
||||||
* @param IDBConnection $connection
|
* @param IDBConnection $connection
|
||||||
|
* @param ILogger $logger
|
||||||
* @param StreamDestRequest $streamDestRequest
|
* @param StreamDestRequest $streamDestRequest
|
||||||
* @param ConfigService $configService
|
* @param ConfigService $configService
|
||||||
* @param MiscService $miscService
|
* @param MiscService $miscService
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
IDBConnection $connection, StreamDestRequest $streamDestRequest, ConfigService $configService,
|
IDBConnection $connection, ILogger $logger, StreamDestRequest $streamDestRequest,
|
||||||
MiscService $miscService
|
ConfigService $configService, MiscService $miscService
|
||||||
) {
|
) {
|
||||||
parent::__construct($connection, $configService, $miscService);
|
parent::__construct($connection, $logger, $configService, $miscService);
|
||||||
|
|
||||||
$this->streamDestRequest = $streamDestRequest;
|
$this->streamDestRequest = $streamDestRequest;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ use OCA\Social\Db\FollowsRequest;
|
||||||
use OCA\Social\Db\StreamRequest;
|
use OCA\Social\Db\StreamRequest;
|
||||||
use OCA\Social\Exceptions\AccountAlreadyExistsException;
|
use OCA\Social\Exceptions\AccountAlreadyExistsException;
|
||||||
use OCA\Social\Exceptions\ActorDoesNotExistException;
|
use OCA\Social\Exceptions\ActorDoesNotExistException;
|
||||||
|
use OCA\Social\Exceptions\ItemAlreadyExistsException;
|
||||||
use OCA\Social\Exceptions\ItemUnknownException;
|
use OCA\Social\Exceptions\ItemUnknownException;
|
||||||
use OCA\Social\Exceptions\SocialAppConfigException;
|
use OCA\Social\Exceptions\SocialAppConfigException;
|
||||||
use OCA\Social\Exceptions\UrlCloudException;
|
use OCA\Social\Exceptions\UrlCloudException;
|
||||||
|
@ -161,6 +162,7 @@ class AccountService {
|
||||||
* @throws NoUserException
|
* @throws NoUserException
|
||||||
* @throws SocialAppConfigException
|
* @throws SocialAppConfigException
|
||||||
* @throws UrlCloudException
|
* @throws UrlCloudException
|
||||||
|
* @throws ItemAlreadyExistsException
|
||||||
*/
|
*/
|
||||||
public function getActorFromUserId(string $userId, bool $create = false): Person {
|
public function getActorFromUserId(string $userId, bool $create = false): Person {
|
||||||
$this->miscService->confirmUserId($userId);
|
$this->miscService->confirmUserId($userId);
|
||||||
|
@ -192,6 +194,7 @@ class AccountService {
|
||||||
* @param string $username
|
* @param string $username
|
||||||
*
|
*
|
||||||
* @throws AccountAlreadyExistsException
|
* @throws AccountAlreadyExistsException
|
||||||
|
* @throws ItemAlreadyExistsException
|
||||||
* @throws NoUserException
|
* @throws NoUserException
|
||||||
* @throws SocialAppConfigException
|
* @throws SocialAppConfigException
|
||||||
* @throws UrlCloudException
|
* @throws UrlCloudException
|
||||||
|
@ -238,6 +241,7 @@ class AccountService {
|
||||||
*
|
*
|
||||||
* @throws SocialAppConfigException
|
* @throws SocialAppConfigException
|
||||||
* @throws UrlCloudException
|
* @throws UrlCloudException
|
||||||
|
* @throws ItemAlreadyExistsException
|
||||||
*/
|
*/
|
||||||
public function cacheLocalActorByUsername(string $username) {
|
public function cacheLocalActorByUsername(string $username) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -12422,12 +12422,6 @@
|
||||||
"get-stdin": "^4.0.1"
|
"get-stdin": "^4.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"strip-json-comments": {
|
|
||||||
"version": "2.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
|
|
||||||
"integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"style-search": {
|
"style-search": {
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz",
|
||||||
|
|
Ładowanie…
Reference in New Issue