Snake case

merge-requests/30/head
Bob Mottram 2022-01-14 12:53:29 +00:00
parent 9a0185ef3c
commit c395261523
1 changed files with 24 additions and 24 deletions

View File

@ -999,20 +999,20 @@ def send_follow_requestViaServer(base_dir: str, session,
# get the actor inbox for the To handle # get the actor inbox for the To handle
origin_domain = from_domain origin_domain = from_domain
(inboxUrl, _, _, fromPersonId, sharedInbox, avatarUrl, (inbox_url, _, _, from_person_id, _, _,
displayName, _) = get_person_box(signing_priv_key_pem, origin_domain, _, _) = get_person_box(signing_priv_key_pem, origin_domain,
base_dir, session, wf_request, base_dir, session, wf_request,
person_cache, person_cache,
project_version, http_prefix, project_version, http_prefix,
from_nickname, from_nickname,
from_domain, post_to_box, 52025) from_domain, post_to_box, 52025)
if not inboxUrl: if not inbox_url:
if debug: if debug:
print('DEBUG: follow request no ' + post_to_box + print('DEBUG: follow request no ' + post_to_box +
' was found for ' + handle) ' was found for ' + handle)
return 3 return 3
if not fromPersonId: if not from_person_id:
if debug: if debug:
print('DEBUG: follow request no actor was found for ' + handle) print('DEBUG: follow request no actor was found for ' + handle)
return 4 return 4
@ -1026,10 +1026,10 @@ def send_follow_requestViaServer(base_dir: str, session,
} }
post_result = \ post_result = \
post_json(http_prefix, from_domain_full, post_json(http_prefix, from_domain_full,
session, new_follow_json, [], inboxUrl, headers, 3, True) session, new_follow_json, [], inbox_url, headers, 3, True)
if not post_result: if not post_result:
if debug: if debug:
print('DEBUG: POST follow request failed for c2s to ' + inboxUrl) print('DEBUG: POST follow request failed for c2s to ' + inbox_url)
return 5 return 5
if debug: if debug:
@ -1095,8 +1095,8 @@ def send_unfollow_request_via_server(base_dir: str, session,
# get the actor inbox for the To handle # get the actor inbox for the To handle
origin_domain = from_domain origin_domain = from_domain
(inboxUrl, pubKeyId, pubKey, fromPersonId, sharedInbox, avatarUrl, (inbox_url, _, _, from_person_id, _, _,
displayName, _) = get_person_box(signing_priv_key_pem, _, _) = get_person_box(signing_priv_key_pem,
origin_domain, origin_domain,
base_dir, session, base_dir, session,
wf_request, person_cache, wf_request, person_cache,
@ -1105,12 +1105,12 @@ def send_unfollow_request_via_server(base_dir: str, session,
from_domain, post_to_box, from_domain, post_to_box,
76536) 76536)
if not inboxUrl: if not inbox_url:
if debug: if debug:
print('DEBUG: unfollow no ' + post_to_box + print('DEBUG: unfollow no ' + post_to_box +
' was found for ' + handle) ' was found for ' + handle)
return 3 return 3
if not fromPersonId: if not from_person_id:
if debug: if debug:
print('DEBUG: unfollow no actor was found for ' + handle) print('DEBUG: unfollow no actor was found for ' + handle)
return 4 return 4
@ -1124,10 +1124,10 @@ def send_unfollow_request_via_server(base_dir: str, session,
} }
post_result = \ post_result = \
post_json(http_prefix, from_domain_full, post_json(http_prefix, from_domain_full,
session, unfollow_json, [], inboxUrl, headers, 3, True) session, unfollow_json, [], inbox_url, headers, 3, True)
if not post_result: if not post_result:
if debug: if debug:
print('DEBUG: POST unfollow failed for c2s to ' + inboxUrl) print('DEBUG: POST unfollow failed for c2s to ' + inbox_url)
return 5 return 5
if debug: if debug: