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:
parent
52ce2934ac
commit
6973d39cbd
|
@ -257,13 +257,13 @@
|
||||||
<router-link :to="{ name: 'network', params: { networkSlug: description.network.slug } }">
|
<router-link :to="{ name: 'network', params: { networkSlug: description.network.slug } }">
|
||||||
<img
|
<img
|
||||||
v-if="description.site"
|
v-if="description.site"
|
||||||
:src="`/img/logos/${description.network.slug}/${description.site.slug}.png`"
|
:src="`/img/logos/${description.network.slug}/thumbs/${description.site.slug}.png`"
|
||||||
class="description-logo"
|
class="description-logo"
|
||||||
>
|
>
|
||||||
|
|
||||||
<img
|
<img
|
||||||
v-else
|
v-else
|
||||||
:src="`/img/logos/${description.network.slug}/network.png`"
|
:src="`/img/logos/${description.network.slug}/thumbs/network.png`"
|
||||||
class="description-logo"
|
class="description-logo"
|
||||||
>
|
>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
Binary file not shown.
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
@ -196,7 +196,7 @@ async function curateProfile(profile) {
|
||||||
update: profile.update,
|
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
|
const hasher = curatedProfile.description && blake2
|
||||||
.createHash('blake2b')
|
.createHash('blake2b')
|
||||||
|
|
Loading…
Reference in New Issue