Check that path contains stamp number

main
bashrc 2026-07-19 12:46:38 +01:00
parent 6de97f0bfb
commit 25f6702c90
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ def get_feature_authorization(self, calling_domain: str,
"""Returns the verification stamp for feature authorization """Returns the verification stamp for feature authorization
https://codeberg.org/fediverse/fep/src/branch/main/fep/7aa9/fep-7aa9.md 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] stamp_number = self.path.split('/stamps/')[1]
if '/' in stamp_number: if '/' in stamp_number:
stamp_number = stamp_number.split('/')[0] stamp_number = stamp_number.split('/')[0]