Filter the display of skill names

alt-html-css
Bob Mottram 2020-12-19 10:32:48 +00:00
parent 84a00f3946
commit 0d9a12ac22
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@ from pgp import getPGPfingerprint
from pgp import getPGPpubKey from pgp import getPGPpubKey
from tox import getToxAddress from tox import getToxAddress
from jami import getJamiAddress from jami import getJamiAddress
from filters import isFiltered
from webapp_frontscreen import htmlFrontScreen from webapp_frontscreen import htmlFrontScreen
from webapp_utils import scheduledPostsExist from webapp_utils import scheduledPostsExist
from webapp_utils import getPersonAvatarUrl from webapp_utils import getPersonAvatarUrl
@ -990,6 +991,8 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
skillCtr = 1 skillCtr = 1
if skills: if skills:
for skillDesc, skillValue in skills.items(): for skillDesc, skillValue in skills.items():
if isFiltered(baseDir, nickname, domain, skillDesc):
continue
skillsStr += \ skillsStr += \
'<p><input type="text" placeholder="' + translate['Skill'] + \ '<p><input type="text" placeholder="' + translate['Skill'] + \
' ' + str(skillCtr) + '" name="skillName' + str(skillCtr) + \ ' ' + str(skillCtr) + '" name="skillName' + str(skillCtr) + \