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: