kopia lustrzana https://github.com/nextcloud/social
rodzic
7a92cf1574
commit
06d12a24dd
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -12422,12 +12422,6 @@
|
|||
"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": {
|
||||
"version": "0.1.0",
|
||||
"resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz",
|
||||
|
|
Ładowanie…
Reference in New Issue