diff options
Diffstat (limited to 'lib/Model')
-rw-r--r-- | lib/Model/ActivityPub/Object/Image.php | 2 | ||||
-rw-r--r-- | lib/Model/ActivityPub/Object/Note.php | 3 | ||||
-rw-r--r-- | lib/Model/LinkedDataSignature.php | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/lib/Model/ActivityPub/Object/Image.php b/lib/Model/ActivityPub/Object/Image.php index 466b906a..17bdbf94 100644 --- a/lib/Model/ActivityPub/Object/Image.php +++ b/lib/Model/ActivityPub/Object/Image.php @@ -32,6 +32,7 @@ namespace OCA\Social\Model\ActivityPub\Object; use JsonSerializable; +use OCA\Social\Exceptions\InvalidOriginException; use OCA\Social\Exceptions\UrlCloudException; use OCA\Social\Model\ActivityPub\ACore; @@ -63,6 +64,7 @@ class Image extends Document implements JsonSerializable { * @param array $data * * @throws UrlCloudException + * @throws InvalidOriginException */ public function import(array $data) { parent::import($data); diff --git a/lib/Model/ActivityPub/Object/Note.php b/lib/Model/ActivityPub/Object/Note.php index 00abd89e..a2acb0e7 100644 --- a/lib/Model/ActivityPub/Object/Note.php +++ b/lib/Model/ActivityPub/Object/Note.php @@ -30,7 +30,6 @@ declare(strict_types=1); namespace OCA\Social\Model\ActivityPub\Object; -use DateTime; use Exception; use JsonSerializable; use OCA\Social\AP; @@ -48,7 +47,7 @@ class Note extends Stream implements JsonSerializable { /** @var array */ private $attachments = []; - + /** @var array */ private $hashtags = []; diff --git a/lib/Model/LinkedDataSignature.php b/lib/Model/LinkedDataSignature.php index 2ee8f8a3..d2e46d20 100644 --- a/lib/Model/LinkedDataSignature.php +++ b/lib/Model/LinkedDataSignature.php @@ -32,12 +32,10 @@ namespace OCA\Social\Model; use daita\MySmallPhpTools\Traits\TArrayTools; -use JsonLdException; use JsonSerializable; use OCA\Social\Exceptions\LinkedDataSignatureMissingException; use OCA\Social\Model\ActivityPub\ACore; use OCA\Social\Service\SignatureService; -use stdClass; /** |