mirror of https://gitlab.com/bashrc2/epicyon
Replace direct link to mastodon UI
parent
dfe62fc1f3
commit
13efa85b3b
|
@ -2729,12 +2729,23 @@ def html_individual_post(recent_posts_cache: {}, max_recent_posts: int,
|
||||||
by_str_handle = by_str_nickname + '@' + by_str_domain
|
by_str_handle = by_str_nickname + '@' + by_str_domain
|
||||||
if translate.get(by_text):
|
if translate.get(by_text):
|
||||||
by_text = translate[by_text]
|
by_text = translate[by_text]
|
||||||
post_str += \
|
# Liked by handle
|
||||||
'<p>' + by_text + ' <a href="' + by_str + '" tabindex="10">@' + \
|
|
||||||
by_str_handle + '</a>' + by_text_extra + '\n'
|
|
||||||
|
|
||||||
domain_full = get_full_domain(domain, port)
|
domain_full = get_full_domain(domain, port)
|
||||||
actor = '/users/' + nickname
|
actor = '/users/' + nickname
|
||||||
|
post_str += \
|
||||||
|
'<p>' + by_text + ' '
|
||||||
|
post_str += \
|
||||||
|
'<form method="POST" accept-charset="UTF-8" action="' + \
|
||||||
|
actor + '/searchhandle">\n' + \
|
||||||
|
'<input type="hidden" ' + \
|
||||||
|
'name="actor" value="' + actor + '">' + \
|
||||||
|
'<input type="hidden" ' + \
|
||||||
|
'name="searchtext" value="' + by_str + \
|
||||||
|
'"><button type="submit" ' + \
|
||||||
|
'class="followApproveHandle" ' + \
|
||||||
|
'name="submitSearch" tabindex="10">' + \
|
||||||
|
by_str_handle + '</button></form>'
|
||||||
|
post_str += by_text_extra + '\n'
|
||||||
follow_str = ' <form method="POST" ' + \
|
follow_str = ' <form method="POST" ' + \
|
||||||
'accept-charset="UTF-8" action="' + actor + '/searchhandle">\n'
|
'accept-charset="UTF-8" action="' + actor + '/searchhandle">\n'
|
||||||
follow_str += \
|
follow_str += \
|
||||||
|
|
Loading…
Reference in New Issue