forked from DebaucheryLibrarian/traxxx
Replacing one or multiple space-like characters with single space in actor description. Using logo thumbnails in descriptions.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user