From b17f5b582344182df89f6f14aadc5fff9492553c Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Sun, 25 Aug 2019 23:13:57 +0300 Subject: [PATCH] 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. --- CHANGELOG.md | 2 ++ federation/hostmeta/fetchers.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10ba040..bff1003 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,8 @@ * Entities with `raw_content` now also contain a `_media_type` and `rendered_content`. 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 diff --git a/federation/hostmeta/fetchers.py b/federation/hostmeta/fetchers.py index 6137dd2..c86f5f9 100644 --- a/federation/hostmeta/fetchers.py +++ b/federation/hostmeta/fetchers.py @@ -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):