Tweak actor schema

main
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, "preferredUsername": config.USERNAME,
"name": config.CONFIG.name, "name": config.CONFIG.name,
"summary": config.CONFIG.summary, "summary": config.CONFIG.summary,
"endpoints": {}, "endpoints": {
# For compat with servers expecting a sharedInbox...
"sharedInbox": config.BASE_URL
+ "/inbox",
},
"url": config.ID, "url": config.ID,
"manuallyApprovesFollowers": False, "manuallyApprovesFollowers": False,
"attachment": [], "attachment": [],
@ -96,7 +100,6 @@ ME = {
"owner": config.ID, "owner": config.ID,
"publicKeyPem": get_pubkey_as_pem(config.KEY_PATH), "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): # TODO(ts):
# #
# Next: # Next:
# - Webmention notification # - UI support for updating posts
# - Support for processing update
# - Page support # - Page support
# - Article support # - Article support
# - Fix tests
# - Fix SQL tx in the codebase
# - indieauth tweaks # - indieauth tweaks
# - API for posting notes # - API for posting notes
# - allow to block servers # - allow to block servers
# - FT5 text search # - FT5 text search
# - support update post with history? # - support update post with history?
# # - block support
# - [ ] block support # - cleanup tasks
# - [ ] prevent SSRF (urlutils from little-boxes)
# - [ ] Dockerization
# - [ ] cleanup tasks
class CustomMiddleware: class CustomMiddleware: