Fix and document the pyfed namespace

merge-requests/156/head
Jason Robinson 2019-08-18 19:56:08 +03:00
rodzic 5045127072
commit e670f882f8
3 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -28,6 +28,8 @@
* The high level fetcher `retrieve_remote_content` now supports ActivityPub ID's.
* All ActivityPub payloads are added a `pyfed: https://docs.jasonrobinson.me/ns/python-federation` context to identify payloads sent by this library.
### Changed
* **Backwards incompatible.** Lowest compatible Python version is now 3.6.

Wyświetl plik

@ -41,7 +41,12 @@ Features currently supported:
* Actor (Person)
* Note, Article and Page (Create, Delete, Update)
* These become a `Post` or `Comment` depending on `inReplyTo`.
* These become a ``Post`` or ``Comment`` depending on ``inReplyTo``.
* Attachment images from the above objects
* Follow, Accept Follow, Undo Follow
* Announce
Namespace
.........
All payloads over ActivityPub sent can be identified with by checking ``@context`` which will include the ``pyfed: https://docs.jasonrobinson.me/ns/python-federation`` namespace.

Wyświetl plik

@ -2,7 +2,7 @@ CONTEXT_ACTIVITYSTREAMS = "https://www.w3.org/ns/activitystreams"
CONTEXT_HASHTAG = {"Hashtag": "as:Hashtag"}
CONTEXT_LD_SIGNATURES = "https://w3id.org/security/v1"
CONTEXT_MANUALLY_APPROVES_FOLLOWERS = {"manuallyApprovesFollowers": "as:manuallyApprovesFollowers"}
CONTEXT_PYTHON_FEDERATION = {"pyfed": "https://jasonrobinson.me/ns/federation"}
CONTEXT_PYTHON_FEDERATION = {"pyfed": "https://docs.jasonrobinson.me/ns/python-federation"}
CONTEXT_SENSITIVE = {"sensitive": "as:sensitive"}
CONTEXTS_DEFAULT = [