Host meta fetchers now support NodeInfo 2.1

This seems unreleased, and doesn't really add anything useful,
but just seen it in the wild.
merge-requests/156/merge
Jason Robinson 2019-08-25 23:13:57 +03:00
rodzic eab497d8fc
commit b17f5b5823
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -34,6 +34,8 @@
The default `_media_type` is `text/markdown` except for ActivityPub originating posts it defaults to `text/html`. If the ActivityPub payload contains a `source`, that mediaType will be used instead.
* Host meta fetchers now support NodeInfo 2.1
### Changed
* **Backwards incompatible.** Lowest compatible Python version is now 3.6.

Wyświetl plik

@ -8,7 +8,7 @@ from federation.hostmeta.parsers import (
parse_matrix_document, parse_misskey_document)
from federation.utils.network import fetch_document
HIGHEST_SUPPORTED_NODEINFO_VERSION = 2.0
HIGHEST_SUPPORTED_NODEINFO_VERSION = 2.1
def fetch_mastodon_document(host):