summaryrefslogtreecommitdiffstats
path: root/lib/Interfaces/Object/NoteInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Interfaces/Object/NoteInterface.php')
-rw-r--r--lib/Interfaces/Object/NoteInterface.php39
1 files changed, 27 insertions, 12 deletions
diff --git a/lib/Interfaces/Object/NoteInterface.php b/lib/Interfaces/Object/NoteInterface.php
index 6db04f0d..18ac2122 100644
--- a/lib/Interfaces/Object/NoteInterface.php
+++ b/lib/Interfaces/Object/NoteInterface.php
@@ -109,6 +109,24 @@ class NoteInterface implements IActivityPubInterface {
/**
+ * @param ACore $activity
+ * @param ACore $item
+ *
+ * @throws InvalidOriginException
+ */
+ public function activity(Acore $activity, ACore $item) {
+ /** @var Note $item */
+
+ if ($activity->getType() === Create::TYPE) {
+ $activity->checkOrigin($item->getId());
+ $activity->checkOrigin($item->getAttributedTo());
+ $item->setActivityId($activity->getId());
+ $this->save($item);
+ }
+ }
+
+
+ /**
* @param ACore $note
*/
public function save(ACore $note) {
@@ -123,20 +141,9 @@ class NoteInterface implements IActivityPubInterface {
/**
- * @param ACore $activity
* @param ACore $item
- *
- * @throws InvalidOriginException
*/
- public function activity(Acore $activity, ACore $item) {
- /** @var Note $item */
-
- if ($activity->getType() === Create::TYPE) {
- $activity->checkOrigin($item->getId());
- $activity->checkOrigin($item->getAttributedTo());
- $item->setActivityId($activity->getId());
- $this->save($item);
- }
+ public function update(ACore $item) {
}
@@ -153,5 +160,13 @@ class NoteInterface implements IActivityPubInterface {
}
+ /**
+ * @param ACore $item
+ * @param string $source
+ */
+ public function event(ACore $item, string $source) {
+ }
+
+
}