aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/push.php
diff options
context:
space:
mode:
authorwinter2024-12-17 23:05:43 +0000
committerwinter2024-12-17 23:05:43 +0000
commit6f844ff40d936fb6591c2469dd9ff922bc4e575f (patch)
tree007dc0372c2c999bdcf6ea1ba80f6eb93a161a7f /routes/push.php
parent801778a295df2b026391483faa390cf87e68b1ad (diff)
implement interactions
Diffstat (limited to 'routes/push.php')
-rw-r--r--routes/push.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/routes/push.php b/routes/push.php
index 6712fb4..6fc8229 100644
--- a/routes/push.php
+++ b/routes/push.php
@@ -5,6 +5,7 @@ use Digitigrade\HttpResponseStatus\Forbidden;
use Digitigrade\HttpResponseStatus\Unauthorized;
use Digitigrade\Model\Actor;
use Digitigrade\Model\Instance;
+use Digitigrade\Model\Interaction;
use Digitigrade\Model\Note;
use Digitigrade\Router;
@@ -41,6 +42,8 @@ Router::getInstance()->mount('/push', function (array $args) {
Note::importFromReceivedObject($obj);
break;
case 'interaction':
+ Interaction::importFromReceivedObject($obj);
+ break;
case 'extension':
case 'tombstone':
throw new \RuntimeException('object type not yet implemented :(');