forked from indymedia/epicyon
Filter display name
parent
86c1a678dc
commit
536a69e8ef
|
@ -3885,8 +3885,12 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# change displayed name
|
# change displayed name
|
||||||
if fields.get('displayNickname'):
|
if fields.get('displayNickname'):
|
||||||
if fields['displayNickname'] != actorJson['name']:
|
if fields['displayNickname'] != actorJson['name']:
|
||||||
actorJson['name'] = \
|
displayName = \
|
||||||
removeHtml(fields['displayNickname'])
|
removeHtml(fields['displayNickname'])
|
||||||
|
if not isFiltered(baseDir,
|
||||||
|
nickname, domain,
|
||||||
|
displayName):
|
||||||
|
actorJson['name'] = displayName
|
||||||
actorChanged = True
|
actorChanged = True
|
||||||
|
|
||||||
# change media instance status
|
# change media instance status
|
||||||
|
|
|
@ -881,6 +881,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
|
||||||
PGPpubKey = getPGPpubKey(actorJson)
|
PGPpubKey = getPGPpubKey(actorJson)
|
||||||
PGPfingerprint = getPGPfingerprint(actorJson)
|
PGPfingerprint = getPGPfingerprint(actorJson)
|
||||||
if actorJson.get('name'):
|
if actorJson.get('name'):
|
||||||
|
if not isFiltered(baseDir, nickname, domain, actorJson['name']):
|
||||||
displayNickname = actorJson['name']
|
displayNickname = actorJson['name']
|
||||||
if actorJson.get('summary'):
|
if actorJson.get('summary'):
|
||||||
bioStr = \
|
bioStr = \
|
||||||
|
|
Loading…
Reference in New Issue