From 25f6702c90cffd919934c506df5dacb56bfaae88 Mon Sep 17 00:00:00 2001 From: bashrc Date: Sun, 19 Jul 2026 12:46:38 +0100 Subject: [PATCH] Check that path contains stamp number --- src/daemon_get_collections.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/daemon_get_collections.py b/src/daemon_get_collections.py index 76243d8a5..cfafb1794 100644 --- a/src/daemon_get_collections.py +++ b/src/daemon_get_collections.py @@ -33,6 +33,8 @@ def get_feature_authorization(self, calling_domain: str, """Returns the verification stamp for feature authorization https://codeberg.org/fediverse/fep/src/branch/main/fep/7aa9/fep-7aa9.md """ + if '/stamps/' not in self.path: + return stamp_number = self.path.split('/stamps/')[1] if '/' in stamp_number: stamp_number = stamp_number.split('/')[0]