kopia lustrzana https://github.com/nextcloud/social
rodzic
9854c65e0a
commit
76997d0cd5
|
@ -69,7 +69,6 @@ class CoreRequestBuilder {
|
|||
const TABLE_STREAM_ACTIONS = 'social_stream_actions';
|
||||
|
||||
|
||||
|
||||
/** @var IDBConnection */
|
||||
protected $dbConnection;
|
||||
|
||||
|
@ -142,17 +141,6 @@ class CoreRequestBuilder {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Limit the request to the Type
|
||||
*
|
||||
* @param IQueryBuilder $qb
|
||||
* @param string $type
|
||||
*/
|
||||
protected function limitToType(IQueryBuilder &$qb, string $type) {
|
||||
$this->limitToDBField($qb, 'id', $type, false);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Limit the request to the UserId
|
||||
*
|
||||
|
@ -800,6 +788,7 @@ class CoreRequestBuilder {
|
|||
*
|
||||
* @return Document
|
||||
* @throws InvalidResourceException
|
||||
* @throws Exception
|
||||
*/
|
||||
protected function parseCacheDocumentsLeftJoin(array $data): Document {
|
||||
$new = [];
|
||||
|
|
|
@ -32,6 +32,7 @@ namespace OCA\Social\Db;
|
|||
|
||||
use daita\MySmallPhpTools\Traits\TArrayTools;
|
||||
use Doctrine\DBAL\Query\QueryBuilder;
|
||||
use Exception;
|
||||
use OCA\Social\Exceptions\InvalidResourceException;
|
||||
use OCA\Social\Model\ActivityPub\ACore;
|
||||
use OCA\Social\Model\ActivityPub\Actor\Person;
|
||||
|
@ -361,9 +362,11 @@ class NotesRequestBuilder extends CoreRequestBuilder {
|
|||
* @param array $data
|
||||
*
|
||||
* @return Stream
|
||||
* @throws Exception
|
||||
*/
|
||||
protected function parseNotesSelectSql($data): Stream {
|
||||
$item = new Stream();
|
||||
$item->importFromDatabase($data);
|
||||
|
||||
$instances = json_decode($this->get('instances', $data, '[]'), true);
|
||||
if (is_array($instances)) {
|
||||
|
|
|
@ -595,7 +595,6 @@ class ACore extends Item implements JsonSerializable {
|
|||
$this->setId($this->validate(self::AS_ID, 'id', $data, ''));
|
||||
$this->setType($this->validate(self::AS_TYPE, 'type', $data, ''));
|
||||
$this->setUrl($this->validate(self::AS_URL, 'url', $data, ''));
|
||||
$this->setAttributedTo($this->validate(self::AS_ID, 'attributed_to', $data, ''));
|
||||
$this->setSummary($this->validate(self::AS_STRING, 'summary', $data, ''));
|
||||
$this->setTo($this->validate(self::AS_ID, 'to', $data, ''));
|
||||
$this->setToArray($this->validateArray(self::AS_ID, 'to_array', $data, []));
|
||||
|
@ -631,7 +630,6 @@ class ACore extends Item implements JsonSerializable {
|
|||
$this->addEntry('id', $this->getId());
|
||||
$this->addEntry('type', $this->getType());
|
||||
$this->addEntry('url', $this->getUrl());
|
||||
$this->addEntry('attributedTo', $this->getAttributedTo());
|
||||
$this->addEntry('to', $this->getTo());
|
||||
$this->addEntryArray('to', $this->getToArray());
|
||||
$this->addEntryArray('cc', $this->getCcArray());
|
||||
|
|
Ładowanie…
Reference in New Issue