my eye

Receive messages at ActivityPub inbox

Committed af4ffa

--- a/webint_owner/__init__.py
+++ b/webint_owner/__init__.py

             "preferredUsername": tx.host.owner["nickname"][0],
             "name": tx.host.owner["name"][0],
             "summary": tx.host.owner["note"][0],
-            "inbox": f"{tx.origin}/inbox",
+            "inbox": f"{tx.origin}/owner/inbox",
             "publicKey": {
                 "id": f"{tx.origin}/owner/actor#main-key",
                 "owner": f"{tx.origin}/owner/actor",
         return profile
 
 
+@app.control("inbox")
+class ActivityPubInbox:
+    """Messages from the Fediverse."""
+
+    def post(self):
+        """ActivityPub Inbox."""
+        data = web.tx.request.body._data
+
+
 @app.control(".well-known/webfinger", prefixed=False)
 class WebfingerProfile:
     """."""