chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2024-08-14 13:53:56 +02:00
parent f77570589d
commit 9b8a9337fd
111 changed files with 2911 additions and 1280 deletions

View file

@ -391,12 +391,14 @@ export default class UserRelatedState {
for (const k in userDetails) {
amendedPrefs.data["_" + k] = "" + userDetails[k]
}
if(userDetails.description){
amendedPrefs.data["_description_html"] = Utils.purify(new Showdown.Converter()
.makeHtml(userDetails.description)
?.replace(/>/g, ">")
?.replace(/&lt;/g, "<")
?.replace(/\n/g, ""))
if (userDetails.description) {
amendedPrefs.data["_description_html"] = Utils.purify(
new Showdown.Converter()
.makeHtml(userDetails.description)
?.replace(/&gt;/g, ">")
?.replace(/&lt;/g, "<")
?.replace(/\n/g, "")
)
}
usersettingMetaTagging.metaTaggging_for_usersettings({ properties: amendedPrefs.data })