summaryrefslogtreecommitdiffstats
path: root/lib/Model
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-05-06 07:29:07 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-05-06 07:29:07 -0100
commit9854c65e0a7976783dafa6f733d77d4a3882d6d9 (patch)
treeece3f813742dfbee4245f9a07016859339fa352b /lib/Model
parent51b936e48263b0300e8a4c8d79da28ac44ce097d (diff)
cleaning/merging to master
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/ActivityPub/Item.php19
-rw-r--r--lib/Model/ActivityPub/Object/Document.php3
2 files changed, 3 insertions, 19 deletions
diff --git a/lib/Model/ActivityPub/Item.php b/lib/Model/ActivityPub/Item.php
index e1c2d4f5..8184ce1c 100644
--- a/lib/Model/ActivityPub/Item.php
+++ b/lib/Model/ActivityPub/Item.php
@@ -178,25 +178,6 @@ class Item {
/**
- * @return string
- */
- public function getAttributedTo(): string {
- return $this->attributedTo;
- }
-
- /**
- * @param string $attributedTo
- *
- * @return Item
- */
- public function setAttributedTo(string $attributedTo): Item {
- $this->attributedTo = $attributedTo;
-
- return $this;
- }
-
-
- /**
* @param InstancePath $instancePath
*
* @return Item
diff --git a/lib/Model/ActivityPub/Object/Document.php b/lib/Model/ActivityPub/Object/Document.php
index 932392c7..35883e06 100644
--- a/lib/Model/ActivityPub/Object/Document.php
+++ b/lib/Model/ActivityPub/Object/Document.php
@@ -32,6 +32,7 @@ namespace OCA\Social\Model\ActivityPub\Object;
use DateTime;
+use Exception;
use JsonSerializable;
use OCA\Social\Exceptions\InvalidOriginException;
use OCA\Social\Exceptions\UrlCloudException;
@@ -236,6 +237,8 @@ class Document extends ACore implements JsonSerializable {
/**
* @param array $data
+ *
+ * @throws Exception
*/
public function importFromDatabase(array $data) {
parent::importFromDatabase($data);