mirror of https://gitlab.com/bashrc2/epicyon
Consistent stamp number variable name
parent
25f6702c90
commit
ae48077a1b
|
|
@ -545,9 +545,9 @@ def create_feature_accept(federation_list: [],
|
|||
|
||||
request_id = request_object_json['id']
|
||||
|
||||
stamp_id = url_text_to_number(to_url + request_object_json['object'])
|
||||
stamp_number = url_text_to_number(to_url + request_object_json['object'])
|
||||
stamp_url = \
|
||||
http_prefix + '://' + domain + '/stamps/' + stamp_id
|
||||
http_prefix + '://' + domain + '/stamps/' + stamp_number
|
||||
|
||||
new_accept = {
|
||||
"@context": [
|
||||
|
|
|
|||
|
|
@ -299,10 +299,10 @@ def store_feature_authorization(base_dir: str, nickname: str, domain: str,
|
|||
accounts_dir: str = acct_dir(base_dir, nickname, domain)
|
||||
if not is_a_dir(accounts_dir + '/stamps'):
|
||||
makedir(accounts_dir + '/stamps')
|
||||
stamp_id = featured_item['featureAuthorization'].split('/stamps/')[1]
|
||||
if '/' in stamp_id:
|
||||
stamp_id = stamp_id.split('/')[0]
|
||||
feature_authorization_filename = accounts_dir + '/stamps/' + stamp_id
|
||||
stamp_number = featured_item['featureAuthorization'].split('/stamps/')[1]
|
||||
if '/' in stamp_number:
|
||||
stamp_number = stamp_number.split('/')[0]
|
||||
feature_authorization_filename = accounts_dir + '/stamps/' + stamp_number
|
||||
if not is_a_file(feature_authorization_filename):
|
||||
return False
|
||||
return save_json(featured_item, feature_authorization_filename)
|
||||
|
|
|
|||
Loading…
Reference in New Issue