Merge branch 'main' of gitlab.com:bashrc2/epicyon

merge-requests/30/head
Bob Mottram 2022-05-10 10:49:49 +01:00
commit 21e8269a14
2 changed files with 30 additions and 2 deletions

View File

@ -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;

View File

@ -254,7 +254,7 @@ def html_profile_after_search(css_cache: {},
if len(profile_description.split('<br>')) > 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('<br>', '\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 = ''
@ -2237,6 +2237,7 @@ def html_edit_profile(server, css_cache: {}, translate: {},
actor_json['summary'].replace('<p>', '').replace('</p>', '')
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'