From 5470ab3896e725039561d11329a504e967a9b890 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 1 Mar 2022 14:29:33 +0000 Subject: [PATCH] Likers link on the number of likes --- webapp_post.py | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/webapp_post.py b/webapp_post.py index f21b49896..978eb30b6 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -651,31 +651,28 @@ def _get_like_icon_html(nickname: str, domain_full: str, _log_post_timing(enable_timing_log, post_start_time, '12.2') - like_str = '' - if like_count_str: - # show the number of likes next to icon - like_str += '\n' like_post_id = remove_hash_from_post_id(post_json_object['id']) like_post_id = remove_id_ending(like_post_id) - # create the link to likers of the post - likers_post_id = like_post_id.replace('/', '--') - likers_screen_link = like_title + like_count_str + like_str = '' if like_count_str: + likers_post_id = like_post_id.replace('/', '--') likers_screen_link = \ '/users/' + nickname + '?likers=' + likers_post_id - likers_screen_link = \ - '" + \ - like_title + like_count_str + '' + + # show the number of likes next to icon + like_str += '\n' + like_str += \ ' \n' + '?tl=' + box_name + '" title="' + like_title + like_count_str + '">\n' like_str += \ ' ' + \ '