mirror of https://gitlab.com/bashrc2/epicyon
Statdardize text within status on person options
parent
9db1b4ce3d
commit
b657380b6f
|
@ -14,6 +14,7 @@ from person import is_person_snoozed
|
||||||
from posts import is_moderator
|
from posts import is_moderator
|
||||||
from flags import is_featured_writer
|
from flags import is_featured_writer
|
||||||
from flags import is_dormant
|
from flags import is_dormant
|
||||||
|
from utils import standardize_text
|
||||||
from utils import data_dir
|
from utils import data_dir
|
||||||
from utils import quote_toots_allowed
|
from utils import quote_toots_allowed
|
||||||
from utils import get_full_domain
|
from utils import get_full_domain
|
||||||
|
@ -400,13 +401,14 @@ def html_person_options(default_timeline: str,
|
||||||
options_str += other_accounts_html
|
options_str += other_accounts_html
|
||||||
|
|
||||||
if status:
|
if status:
|
||||||
if len(status) < 100 and \
|
if len(status) < 100:
|
||||||
not is_filtered(base_dir, nickname, domain, status,
|
status = standardize_text(status)
|
||||||
|
if is_filtered(base_dir, nickname, domain, status,
|
||||||
system_language):
|
system_language):
|
||||||
# https://codeberg.org/fediverse/fep/src/branch/main/
|
# https://codeberg.org/fediverse/fep/src/branch/main/
|
||||||
# fep/82f6/fep-82f6.md
|
# fep/82f6/fep-82f6.md
|
||||||
options_str += \
|
options_str += \
|
||||||
' <p class="imText">' + remove_html(status) + '</p>\n'
|
' <p class="imText">' + remove_html(status) + '</p>\n'
|
||||||
if pronouns:
|
if pronouns:
|
||||||
options_str += \
|
options_str += \
|
||||||
' <p class="imText">' + translate['Pronouns'] + \
|
' <p class="imText">' + translate['Pronouns'] + \
|
||||||
|
|
Loading…
Reference in New Issue