mirror of https://gitlab.com/bashrc2/epicyon
Check that path contains stamp number
parent
6de97f0bfb
commit
25f6702c90
|
|
@ -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]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue