Replacing one or multiple space-like characters with single space in actor description. Using logo thumbnails in descriptions.

This commit is contained in:
2020-05-19 05:06:01 +02:00
parent 52ce2934ac
commit 6973d39cbd
6 changed files with 3 additions and 3 deletions

View File

@@ -196,7 +196,7 @@ async function curateProfile(profile) {
update: profile.update,
};
curatedProfile.description = domPurify.sanitize(profile.description, { ALLOWED_TAGS: [] }).trim() || null;
curatedProfile.description = domPurify.sanitize(profile.description.replace(/\s+/g, ' '), { ALLOWED_TAGS: [] }).trim() || null;
const hasher = curatedProfile.description && blake2
.createHash('blake2b')