From b3db0c8ea5cd611f68a2b18b966c6a7a38e7e75c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 13 Feb 2022 11:30:11 +0000 Subject: [PATCH] Add replyto actor if available --- webapp_podcast.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webapp_podcast.py b/webapp_podcast.py index 80e9dd2c7..bdfc85df6 100644 --- a/webapp_podcast.py +++ b/webapp_podcast.py @@ -33,11 +33,17 @@ def _html_podcast_social_interactions(podcast_properties: {}, if not podcast_properties['socialInteract'].get('text'): return '' episode_post_url = podcast_properties['socialInteract']['text'] + actor_str = '' + if podcast_properties['socialInteract'].get('accountId'): + actor_handle = podcast_properties['socialInteract']['accountId'] + if actor_handle.startswith('@'): + actor_handle = actor_handle[1:] + actor_str = '?actor=' + actor_handle podcast_str = \ '
\n' + \ ' 💬 ' + \ translate['Leave a comment'] + '\n' + \ '