From f5d2a08f184fe0a98866a7d5ab3e7a332a3beef9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 10 May 2022 10:03:21 +0100 Subject: [PATCH 1/3] Remove any html from bio on edit profile screen --- webapp_profile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp_profile.py b/webapp_profile.py index 1d1bfb244..fbb29ca8d 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -2237,6 +2237,7 @@ def html_edit_profile(server, css_cache: {}, translate: {}, actor_json['summary'].replace('

', '').replace('

', '') if is_filtered(base_dir, nickname, domain, bio_str): bio_str = '' + bio_str = remove_html(bio_str) if actor_json.get('manuallyApprovesFollowers'): if actor_json['manuallyApprovesFollowers']: manually_approves_followers = 'checked' From 6ba9fdc873fe4303f236e0125ec89ad7da44d678 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 10 May 2022 10:08:29 +0100 Subject: [PATCH 2/3] Allow longer profile descriptions --- webapp_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index fbb29ca8d..cbc9ab419 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -254,7 +254,7 @@ def html_profile_after_search(css_cache: {}, if len(profile_description.split('
')) > 2: profile_description_short = '' # keep the profile description short - if len(profile_description_short) > 256: + if len(profile_description_short) > 2048: profile_description_short = '' # remove formatting from profile description used on title avatar_description = '' @@ -833,7 +833,7 @@ def html_profile(signing_priv_key_pem: str, profile_description_short = '' profile_description = profile_description.replace('
', '\n') # keep the profile description short - if len(profile_description_short) > 256: + if len(profile_description_short) > 2048: profile_description_short = '' # remove formatting from profile description used on title avatar_description = '' From 4f3f3643a909504a5be10a06ad10c03cb1366c3f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 10 May 2022 10:28:59 +0100 Subject: [PATCH 3/3] Custom emoji style within bio --- epicyon-profile.css | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/epicyon-profile.css b/epicyon-profile.css index 0365be8e7..b8286c3b7 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -1115,6 +1115,15 @@ h3 { font-size: var(--font-size); color: var(--title-color); } + figcaption img.emojiheader { + float: none; + width: 25px; + margin-left: 0px; + margin-right: 0px; + padding-right: 0px; + border-radius: 0px; + vertical-align: top; + } .hashtagswarm { font-size: var(--hashtag-size1); font-family: Arial, Helvetica, sans-serif; @@ -1907,6 +1916,15 @@ h3 { blockquote { font-size: var(--quote-font-size-mobile); } + figcaption img.emojiheader { + float: none; + width: 50px; + margin-left: 0px; + margin-right: 0px; + padding-right: 0px; + border-radius: 0px; + vertical-align: top; + } .hashtagswarm { font-size: var(--hashtag-size2); font-family: Arial, Helvetica, sans-serif; @@ -2682,6 +2700,15 @@ h3 { blockquote { font-size: var(--quote-font-size-tiny); } + figcaption img.emojiheader { + float: none; + width: 50px; + margin-left: 0px; + margin-right: 0px; + padding-right: 0px; + border-radius: 0px; + vertical-align: top; + } .hashtagswarm { font-size: var(--font-size2); font-family: Arial, Helvetica, sans-serif;