mirror of https://gitlab.com/bashrc2/epicyon
Accepting follow requests without a users path
parent
8210023965
commit
322d06e26a
|
@ -178,13 +178,19 @@ def manual_approve_follow_request(session, session_onion, session_i2p,
|
||||||
req_domain = approve_handle.split('@')[1].strip()
|
req_domain = approve_handle.split('@')[1].strip()
|
||||||
req_prefix = http_prefix + '://' + req_domain
|
req_prefix = http_prefix + '://' + req_domain
|
||||||
paths = get_user_paths()
|
paths = get_user_paths()
|
||||||
for user_path in paths:
|
if req_prefix + '/' + req_nick in approve_follows_str:
|
||||||
if req_prefix + user_path + req_nick in approve_follows_str:
|
exists = True
|
||||||
exists = True
|
approve_handle_full = req_prefix + '/' + req_nick
|
||||||
approve_handle_full = req_prefix + user_path + req_nick
|
if group_account:
|
||||||
if group_account:
|
approve_handle_full = '!' + approve_handle_full
|
||||||
approve_handle_full = '!' + approve_handle_full
|
if not exists:
|
||||||
break
|
for user_path in paths:
|
||||||
|
if req_prefix + user_path + req_nick in approve_follows_str:
|
||||||
|
exists = True
|
||||||
|
approve_handle_full = req_prefix + user_path + req_nick
|
||||||
|
if group_account:
|
||||||
|
approve_handle_full = '!' + approve_handle_full
|
||||||
|
break
|
||||||
if not exists:
|
if not exists:
|
||||||
print('Manual follow accept: ' + approve_handle_full +
|
print('Manual follow accept: ' + approve_handle_full +
|
||||||
' not in requests file "' +
|
' not in requests file "' +
|
||||||
|
|
Loading…
Reference in New Issue