From b048e3eed7ce6bb22234a5572877022e1372dd5a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 21 Jan 2024 10:13:14 +0000 Subject: [PATCH] Add a valid context --- context.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/context.py b/context.py index 4f5ac5628..794a00fb7 100644 --- a/context.py +++ b/context.py @@ -17,7 +17,8 @@ VALID_CONTEXTS = ( "*/apschema/v1.21", "*/apschema/v1.20", "*/litepub-0.1.jsonld", - "https://litepub.social/litepub/context.jsonld" + "https://litepub.social/litepub/context.jsonld", + "*/socialweb/webfinger" ) @@ -49,6 +50,7 @@ def has_valid_context(post_json_object: {}) -> bool: if not isinstance(url, str): continue if url not in VALID_CONTEXTS: + # is this a wildcard context? wildcard_found = False for cont in VALID_CONTEXTS: if cont.startswith('*'):