From 5016b8eb79b696c19464939c0b2f889a122352b7 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Wed, 20 Jul 2022 19:57:03 +0200 Subject: [PATCH] Tweak actor schema --- app/activitypub.py | 7 +++++-- app/main.py | 12 ++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/app/activitypub.py b/app/activitypub.py index c484c48..5c9f264 100644 --- a/app/activitypub.py +++ b/app/activitypub.py @@ -82,7 +82,11 @@ ME = { "preferredUsername": config.USERNAME, "name": config.CONFIG.name, "summary": config.CONFIG.summary, - "endpoints": {}, + "endpoints": { + # For compat with servers expecting a sharedInbox... + "sharedInbox": config.BASE_URL + + "/inbox", + }, "url": config.ID, "manuallyApprovesFollowers": False, "attachment": [], @@ -96,7 +100,6 @@ ME = { "owner": config.ID, "publicKeyPem": get_pubkey_as_pem(config.KEY_PATH), }, - "alsoKnownAs": [], } diff --git a/app/main.py b/app/main.py index ed540db..082b15c 100644 --- a/app/main.py +++ b/app/main.py @@ -76,19 +76,19 @@ _RESIZED_CACHE: MutableMapping[tuple[str, int], tuple[bytes, str, Any]] = LFUCac # TODO(ts): # # Next: -# - Webmention notification +# - UI support for updating posts +# - Support for processing update # - Page support # - Article support +# - Fix tests +# - Fix SQL tx in the codebase # - indieauth tweaks # - API for posting notes # - allow to block servers # - FT5 text search # - support update post with history? -# -# - [ ] block support -# - [ ] prevent SSRF (urlutils from little-boxes) -# - [ ] Dockerization -# - [ ] cleanup tasks +# - block support +# - cleanup tasks class CustomMiddleware: