summaryrefslogtreecommitdiffstats
path: root/lib/Interfaces/Internal/SocialAppNotificationInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Interfaces/Internal/SocialAppNotificationInterface.php')
-rw-r--r--lib/Interfaces/Internal/SocialAppNotificationInterface.php24
1 files changed, 21 insertions, 3 deletions
diff --git a/lib/Interfaces/Internal/SocialAppNotificationInterface.php b/lib/Interfaces/Internal/SocialAppNotificationInterface.php
index 0c05eb4c..ed4f5028 100644
--- a/lib/Interfaces/Internal/SocialAppNotificationInterface.php
+++ b/lib/Interfaces/Internal/SocialAppNotificationInterface.php
@@ -102,6 +102,14 @@ class SocialAppNotificationInterface implements IActivityPubInterface {
/**
+ * @param ACore $activity
+ * @param ACore $item
+ */
+ public function activity(Acore $activity, ACore $item) {
+ }
+
+
+ /**
* @param ACore $notification
*/
public function save(ACore $notification) {
@@ -113,16 +121,17 @@ class SocialAppNotificationInterface implements IActivityPubInterface {
$notification->setPublished(date("c"));
$notification->convertPublished();
- $this->miscService->log('Generating notification: ' . json_encode($notification, JSON_UNESCAPED_SLASHES), 1);
+ $this->miscService->log(
+ 'Generating notification: ' . json_encode($notification, JSON_UNESCAPED_SLASHES), 1
+ );
$this->streamRequest->save($notification);
}
/**
- * @param ACore $activity
* @param ACore $item
*/
- public function activity(Acore $activity, ACore $item) {
+ public function update(ACore $item) {
}
@@ -132,5 +141,14 @@ class SocialAppNotificationInterface implements IActivityPubInterface {
public function delete(ACore $item) {
}
+
+ /**
+ * @param ACore $item
+ * @param string $source
+ */
+ public function event(ACore $item, string $source) {
+ }
+
+
}