Filter bio on profile screen

merge-requests/8/head
Bob Mottram 2020-12-19 12:51:13 +00:00
parent 2e1efdbee8
commit 86c1a678dc
1 changed files with 2 additions and 0 deletions

View File

@ -885,6 +885,8 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
if actorJson.get('summary'):
bioStr = \
actorJson['summary'].replace('<p>', '').replace('</p>', '')
if isFiltered(baseDir, nickname, domain, bioStr):
bioStr = ''
if actorJson.get('manuallyApprovesFollowers'):
if actorJson['manuallyApprovesFollowers']:
manuallyApprovesFollowers = 'checked'