kopia lustrzana https://github.com/nextcloud/social
rodzic
0298fb6294
commit
b193f383f0
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
**🕸 Open standards:** We use the established ActivityPub standard!
|
**🕸 Open standards:** We use the established ActivityPub standard!
|
||||||
]]></description>
|
]]></description>
|
||||||
<version>0.6.0-beta1</version>
|
<version>0.6.0-beta2</version>
|
||||||
<licence>agpl</licence>
|
<licence>agpl</licence>
|
||||||
<author mail="maxence@artificial-owl.com" homepage="https://artificial-owl.com/">Maxence Lange</author>
|
<author mail="maxence@artificial-owl.com" homepage="https://artificial-owl.com/">Maxence Lange</author>
|
||||||
<author mail="jus@bitgrid.net">Julius Härtl</author>
|
<author mail="jus@bitgrid.net">Julius Härtl</author>
|
||||||
|
|
|
@ -1020,7 +1020,7 @@ class Version1000Date20221118000001 extends SimpleMigrationStep {
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
$table->setPrimaryKey(['id_prim']);
|
$table->setPrimaryKey(['nid']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -386,5 +386,4 @@ class Document extends ACore implements JsonSerializable {
|
||||||
|
|
||||||
return $media;
|
return $media;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,12 +30,8 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace OCA\Social\Model\ActivityPub\Object;
|
namespace OCA\Social\Model\ActivityPub\Object;
|
||||||
|
|
||||||
use Exception;
|
|
||||||
use JsonSerializable;
|
use JsonSerializable;
|
||||||
use OCA\Social\AP;
|
|
||||||
use OCA\Social\Exceptions\InvalidResourceEntryException;
|
|
||||||
use OCA\Social\Exceptions\ItemAlreadyExistsException;
|
use OCA\Social\Exceptions\ItemAlreadyExistsException;
|
||||||
use OCA\Social\Exceptions\ItemUnknownException;
|
|
||||||
use OCA\Social\Model\ActivityPub\ACore;
|
use OCA\Social\Model\ActivityPub\ACore;
|
||||||
use OCA\Social\Model\ActivityPub\Stream;
|
use OCA\Social\Model\ActivityPub\Stream;
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ use OCA\Social\Model\ActivityPub\Object\Follow;
|
||||||
use OCA\Social\Model\ActivityPub\Object\Image;
|
use OCA\Social\Model\ActivityPub\Object\Image;
|
||||||
use OCA\Social\Model\ActivityPub\Object\Like;
|
use OCA\Social\Model\ActivityPub\Object\Like;
|
||||||
use OCA\Social\Model\Client\MediaAttachment;
|
use OCA\Social\Model\Client\MediaAttachment;
|
||||||
use OCA\Social\Model\Post;
|
|
||||||
use OCA\Social\Model\StreamAction;
|
use OCA\Social\Model\StreamAction;
|
||||||
use OCA\Social\Tools\IQueryRow;
|
use OCA\Social\Tools\IQueryRow;
|
||||||
use OCA\Social\Tools\Model\Cache;
|
use OCA\Social\Tools\Model\Cache;
|
||||||
|
|
|
@ -68,7 +68,7 @@ class AttachmentMetaDim implements JsonSerializable {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getHeight(): int {
|
public function getHeight(): ?int {
|
||||||
return $this->height;
|
return $this->height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,6 @@ use GdImage;
|
||||||
use kornrunner\Blurhash\Blurhash;
|
use kornrunner\Blurhash\Blurhash;
|
||||||
|
|
||||||
class BlurService {
|
class BlurService {
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -219,8 +219,6 @@ class CacheDocumentService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $content
|
* @param string $content
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
*/
|
||||||
private function resizeImage(Document $document, string &$content): void {
|
private function resizeImage(Document $document, string &$content): void {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -244,7 +244,6 @@ class DocumentService {
|
||||||
|
|
||||||
|
|
||||||
public function getByLocalId(int $id, string &$mimeType = '', bool $public = false): ISimpleFile {
|
public function getByLocalId(int $id, string &$mimeType = '', bool $public = false): ISimpleFile {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -282,13 +282,6 @@ class StreamService {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param Note $note
|
|
||||||
* @param Document[] $documents
|
|
||||||
*/
|
|
||||||
public function addAttachments(Note $note, array $documents) {
|
|
||||||
$note->setAttachments($documents);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Ładowanie…
Reference in New Issue