mirror of https://gitlab.com/bashrc2/epicyon
Accepting follow requests without a users path
parent
8210023965
commit
322d06e26a
|
@ -178,6 +178,12 @@ 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()
|
||||||
|
if req_prefix + '/' + req_nick in approve_follows_str:
|
||||||
|
exists = True
|
||||||
|
approve_handle_full = req_prefix + '/' + req_nick
|
||||||
|
if group_account:
|
||||||
|
approve_handle_full = '!' + approve_handle_full
|
||||||
|
if not exists:
|
||||||
for user_path in paths:
|
for user_path in paths:
|
||||||
if req_prefix + user_path + req_nick in approve_follows_str:
|
if req_prefix + user_path + req_nick in approve_follows_str:
|
||||||
exists = True
|
exists = True
|
||||||
|
|
Loading…
Reference in New Issue