diff --git a/helpers/preprocessing.js b/helpers/preprocessing.js index 6edef4b..c5d7074 100644 --- a/helpers/preprocessing.js +++ b/helpers/preprocessing.js @@ -64,6 +64,10 @@ function preProcessSessionList(json, count){ * @returns The preprocessed world information for viewing. */ function preProcessWorld(json) { + if (json.description) { + json.description = preProcessName(json.description); + } + if (json.thumbnailUri) { json.thumbnailUri = json.thumbnailUri.replace("resdb:///", "https://assets.resonite.com/").replace(".webp", ""); } else { diff --git a/views/world.pug b/views/world.pug index 42df268..bec3fe6 100644 --- a/views/world.pug +++ b/views/world.pug @@ -21,7 +21,7 @@ block content dd #{ownerName} .row dt Description: - dd #{description} + dd !{description} .row dt First published on: dd #{firstPublishTime} diff --git a/views/worldList.pug b/views/worldList.pug index 7d4544e..1ed710b 100644 --- a/views/worldList.pug +++ b/views/worldList.pug @@ -29,7 +29,7 @@ block content em By #{world.ownerName} div.thumbnail img(src=`${world.thumbnailUri}`, alt='', width='280', height='140', loading='lazy') - p.listing-item__description #{world.description || '(No Description)'} + p.listing-item__description !{world.description || '(No Description)'} +pagination(urlPath, apiInitBody.offset + 1, apiInitBody.offset + records.length, [query.pageIndex, parseInt(query.pageIndex) + 1]) else p