From 5b593194b205fac1ef406a50c6dc1756c9b00afb Mon Sep 17 00:00:00 2001 From: bashrc Date: Thu, 19 Feb 2026 11:03:16 +0000 Subject: [PATCH] Announces string --- speaker.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/speaker.py b/speaker.py index e86151743..4960f4600 100644 --- a/speaker.py +++ b/speaker.py @@ -524,11 +524,14 @@ def _post_to_speaker_json(base_dir: str, http_prefix: str, get_domain_from_actor(announcing_actor) if announced_nickname and announced_domain: announced_handle = announced_nickname + '@' + announced_domain + announces_str = 'announces' + if translate.get('announces'): + announces_str = translate['announces'] say_content = \ - translate['announces'] + ' ' + \ + announces_str + ' ' + \ announced_handle + '. ' + say_content content = \ - translate['announces'] + ' ' + \ + announces_str + ' ' + \ announced_handle + '. ' + content post_id = None if post_json_object['object'].get('id'):