From da55b0d4352d2daf4a8d9f4130d34546e9f01555 Mon Sep 17 00:00:00 2001 From: kPherox Date: Wed, 19 Feb 2020 20:57:58 +0900 Subject: Add fields_text for tooltip --- src/services/entity_normalizer/entity_normalizer.service.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/services/entity_normalizer/entity_normalizer.service.js') diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js index ca79df6f..ca2075a4 100644 --- a/src/services/entity_normalizer/entity_normalizer.service.js +++ b/src/services/entity_normalizer/entity_normalizer.service.js @@ -53,6 +53,12 @@ export const parseUser = (data) => { value: addEmojis(field.value, data.emojis) } }) + output.fields_text = data.fields.map(field => { + return { + name: field.name.replace(/<[^>]*>/g, ''), + value: field.value.replace(/<[^>]*>/g, '') + } + }) // Utilize avatar_static for gif avatars? output.profile_image_url = data.avatar -- cgit v1.2.3-70-g09d2 From 88fbbb5e9bc0f34ab265a4af3151cc96b0b00f0e Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 1 Mar 2020 09:47:21 +0100 Subject: status.vue: Add support for favicons Put in replacement to the external icon when possible --- src/components/status/status.vue | 12 +++++++++++- src/services/entity_normalizer/entity_normalizer.service.js | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'src/services/entity_normalizer/entity_normalizer.service.js') diff --git a/src/components/status/status.vue b/src/components/status/status.vue index ca295640..ec32b60c 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -150,8 +150,18 @@ class="source_url" title="Source" > - + + +