mirror of https://gitlab.com/bashrc2/epicyon
Add replyto actor if available
parent
a7e68e3e0e
commit
b3db0c8ea5
|
@ -33,11 +33,17 @@ def _html_podcast_social_interactions(podcast_properties: {},
|
||||||
if not podcast_properties['socialInteract'].get('text'):
|
if not podcast_properties['socialInteract'].get('text'):
|
||||||
return ''
|
return ''
|
||||||
episode_post_url = podcast_properties['socialInteract']['text']
|
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 = \
|
podcast_str = \
|
||||||
'<center>\n' + \
|
'<center>\n' + \
|
||||||
' <a href="/users/' + nickname + \
|
' <a href="/users/' + nickname + \
|
||||||
'?replyto=' + episode_post_url + '" target="_blank" ' + \
|
'?replyto=' + episode_post_url + actor_str + '" target="_blank" ' + \
|
||||||
'rel="nofollow noopener noreferrer">💬 ' + \
|
'rel="nofollow noopener noreferrer">💬 ' + \
|
||||||
translate['Leave a comment'] + '</a>\n' + \
|
translate['Leave a comment'] + '</a>\n' + \
|
||||||
' <a href="' + episode_post_url + '" target="_blank" ' + \
|
' <a href="' + episode_post_url + '" target="_blank" ' + \
|
||||||
|
|
Loading…
Reference in New Issue