mirror of https://gitlab.com/bashrc2/epicyon
By default accept any language as understood
parent
e252964c9a
commit
8c54b72905
|
@ -1362,7 +1362,7 @@ def run_desktop_client(base_dir: str, proxy_type: str, http_prefix: str,
|
|||
content_license_url = 'https://creativecommons.org/licenses/by/4.0'
|
||||
|
||||
blocked_cache = {}
|
||||
languages_understood = [system_language]
|
||||
languages_understood = []
|
||||
|
||||
indent = ' '
|
||||
if show_new_posts:
|
||||
|
|
|
@ -265,6 +265,10 @@ parser.add_argument('--language', dest='language',
|
|||
type=str, default=None,
|
||||
help='Specify a single language code, ' +
|
||||
'eg. "en" or "fr" or "de"')
|
||||
parser.add_argument('--languagesUnderstood', dest='languages_understood',
|
||||
type=str, default=None,
|
||||
help='List of the default languages understood eg. ' +
|
||||
'"en / fr"')
|
||||
parser.add_argument('-a', '--addaccount', dest='addaccount',
|
||||
type=str, default=None,
|
||||
help='Adds a new account')
|
||||
|
@ -1395,7 +1399,8 @@ if args.message:
|
|||
signing_priv_key_pem = None
|
||||
if args.secure_mode:
|
||||
signing_priv_key_pem = get_instance_actor_key(base_dir, domain)
|
||||
languages_understood = [args.language]
|
||||
if args.languages_understood:
|
||||
languages_understood = [args.languages_understood]
|
||||
|
||||
print('Sending post to ' + args.sendto)
|
||||
send_post_via_server(signing_priv_key_pem, __version__,
|
||||
|
|
2
inbox.py
2
inbox.py
|
@ -4542,7 +4542,7 @@ def run_inbox_queue(recent_posts_cache: {}, max_recent_posts: int,
|
|||
for handle, _ in recipients_dict.items():
|
||||
destination = \
|
||||
queue_json['destination'].replace(inbox_handle, handle)
|
||||
languages_understood = [system_language]
|
||||
languages_understood = []
|
||||
_inbox_after_initial(recent_posts_cache,
|
||||
max_recent_posts,
|
||||
session, key_id, handle,
|
||||
|
|
Loading…
Reference in New Issue