Tweak actor schema

This commit is contained in:
Thomas Sileo 2022-07-20 19:57:03 +02:00
parent 4a6e203d23
commit 5016b8eb79
2 changed files with 11 additions and 8 deletions

View File

@ -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": [],
}

View File

@ -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: