mirror of https://gitlab.com/bashrc2/epicyon
Remove default function arguments when possible
parent
c06ccff83d
commit
8f8de8bd04
45
daemon.py
45
daemon.py
|
@ -721,26 +721,35 @@ def run_daemon(no_of_books: int,
|
||||||
blogs_instance: bool,
|
blogs_instance: bool,
|
||||||
media_instance: bool,
|
media_instance: bool,
|
||||||
max_recent_posts: int,
|
max_recent_posts: int,
|
||||||
enable_shared_inbox: bool, registration: bool,
|
enable_shared_inbox: bool,
|
||||||
language: str, project_version: str,
|
registration: bool,
|
||||||
instance_id: str, client_to_server: bool,
|
language: str,
|
||||||
base_dir: str, domain: str,
|
project_version: str,
|
||||||
onion_domain: str, i2p_domain: str,
|
instance_id: str,
|
||||||
|
client_to_server: bool,
|
||||||
|
base_dir: str,
|
||||||
|
domain: str,
|
||||||
|
onion_domain: str,
|
||||||
|
i2p_domain: str,
|
||||||
yt_replace_domain: str,
|
yt_replace_domain: str,
|
||||||
twitter_replacement_domain: str,
|
twitter_replacement_domain: str,
|
||||||
port: int = 80, proxy_port: int = 80,
|
port: int,
|
||||||
http_prefix: str = 'https',
|
proxy_port: int,
|
||||||
fed_list: [] = [],
|
http_prefix: str,
|
||||||
max_mentions: int = 10, max_emoji: int = 10,
|
fed_list: [],
|
||||||
secure_mode: bool = False,
|
max_mentions: int,
|
||||||
proxy_type: str = None, max_replies: int = 64,
|
max_emoji: int,
|
||||||
domain_max_posts_per_day: int = 8640,
|
secure_mode: bool,
|
||||||
account_max_posts_per_day: int = 864,
|
proxy_type: str,
|
||||||
allow_deletion: bool = False,
|
max_replies: int,
|
||||||
debug: bool = False, unit_test: bool = False,
|
domain_max_posts_per_day: int,
|
||||||
instance_only_skills_search: bool = False,
|
account_max_posts_per_day: int,
|
||||||
send_threads: [] = [],
|
allow_deletion: bool,
|
||||||
manual_follower_approval: bool = True) -> None:
|
debug: bool,
|
||||||
|
unit_test: bool,
|
||||||
|
instance_only_skills_search: bool,
|
||||||
|
send_threads: [],
|
||||||
|
manual_follower_approval: bool) -> None:
|
||||||
if len(domain) == 0:
|
if len(domain) == 0:
|
||||||
domain = 'localhost'
|
domain = 'localhost'
|
||||||
if '.' not in domain:
|
if '.' not in domain:
|
||||||
|
|
51
tests.py
51
tests.py
|
@ -1164,34 +1164,59 @@ def create_server_eve(path: str, domain: str, port: int, federation_list: [],
|
||||||
max_shares_on_profile = 8
|
max_shares_on_profile = 8
|
||||||
public_replies_unlisted = False
|
public_replies_unlisted = False
|
||||||
no_of_books = 10
|
no_of_books = 10
|
||||||
|
domain_max_posts_per_day = 1000
|
||||||
|
account_max_posts_per_day = 1000
|
||||||
print('Server running: Eve')
|
print('Server running: Eve')
|
||||||
run_daemon(no_of_books, public_replies_unlisted,
|
run_daemon(no_of_books,
|
||||||
max_shares_on_profile, max_hashtags, map_format,
|
public_replies_unlisted,
|
||||||
clacks, preferred_podcast_formats,
|
max_shares_on_profile,
|
||||||
|
max_hashtags,
|
||||||
|
map_format,
|
||||||
|
clacks,
|
||||||
|
preferred_podcast_formats,
|
||||||
check_actor_timeout,
|
check_actor_timeout,
|
||||||
crawlers_allowed,
|
crawlers_allowed,
|
||||||
dyslexic_font,
|
dyslexic_font,
|
||||||
content_license_url,
|
content_license_url,
|
||||||
lists_enabled, default_reply_interval_hrs,
|
lists_enabled,
|
||||||
low_bandwidth, max_like_count,
|
default_reply_interval_hrs,
|
||||||
|
low_bandwidth,
|
||||||
|
max_like_count,
|
||||||
shared_items_federated_domains,
|
shared_items_federated_domains,
|
||||||
user_agents_blocked,
|
user_agents_blocked,
|
||||||
log_login_failures, city,
|
log_login_failures,
|
||||||
|
city,
|
||||||
show_node_info_accounts,
|
show_node_info_accounts,
|
||||||
show_node_info_version,
|
show_node_info_version,
|
||||||
broch_mode,
|
broch_mode,
|
||||||
verify_all_signatures,
|
verify_all_signatures,
|
||||||
send_threads_timeout_mins,
|
send_threads_timeout_mins,
|
||||||
dormant_months, max_newswire_posts,
|
dormant_months,
|
||||||
|
max_newswire_posts,
|
||||||
allow_local_network_access,
|
allow_local_network_access,
|
||||||
2048, False, True, False, False, True, max_followers,
|
2048, False, True, False, False, True,
|
||||||
|
max_followers,
|
||||||
0, 100, 1024, 5, False, 0,
|
0, 100, 1024, 5, False, 0,
|
||||||
False, 1, False, False, False,
|
False, 1, False, False, False,
|
||||||
5, True, True, 'en', __version__,
|
5, True, True,
|
||||||
"instance_id", False, path, domain,
|
'en', __version__,
|
||||||
onion_domain, i2p_domain, None, None, port, port,
|
"instance_id", False,
|
||||||
http_prefix, federation_list, max_mentions, max_emoji, False,
|
path, domain,
|
||||||
proxy_type, max_replies, allow_deletion, True, True, False,
|
onion_domain,
|
||||||
|
i2p_domain,
|
||||||
|
None, None,
|
||||||
|
port, port,
|
||||||
|
http_prefix,
|
||||||
|
federation_list,
|
||||||
|
max_mentions,
|
||||||
|
max_emoji,
|
||||||
|
False,
|
||||||
|
proxy_type,
|
||||||
|
max_replies,
|
||||||
|
domain_max_posts_per_day,
|
||||||
|
account_max_posts_per_day,
|
||||||
|
allow_deletion,
|
||||||
|
True, True, False,
|
||||||
send_threads, False)
|
send_threads, False)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue