mirror of https://gitlab.com/bashrc2/epicyon
Announces string
parent
0d91e65393
commit
5b593194b2
|
|
@ -524,11 +524,14 @@ def _post_to_speaker_json(base_dir: str, http_prefix: str,
|
||||||
get_domain_from_actor(announcing_actor)
|
get_domain_from_actor(announcing_actor)
|
||||||
if announced_nickname and announced_domain:
|
if announced_nickname and announced_domain:
|
||||||
announced_handle = announced_nickname + '@' + announced_domain
|
announced_handle = announced_nickname + '@' + announced_domain
|
||||||
|
announces_str = 'announces'
|
||||||
|
if translate.get('announces'):
|
||||||
|
announces_str = translate['announces']
|
||||||
say_content = \
|
say_content = \
|
||||||
translate['announces'] + ' ' + \
|
announces_str + ' ' + \
|
||||||
announced_handle + '. ' + say_content
|
announced_handle + '. ' + say_content
|
||||||
content = \
|
content = \
|
||||||
translate['announces'] + ' ' + \
|
announces_str + ' ' + \
|
||||||
announced_handle + '. ' + content
|
announced_handle + '. ' + content
|
||||||
post_id = None
|
post_id = None
|
||||||
if post_json_object['object'].get('id'):
|
if post_json_object['object'].get('id'):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue