akkoma-fe/src/components/settings_modal
rinpatch d36b45ad43 entity_normalizer: Escape name when parsing user
In January 2020 Pleroma backend stopped escaping HTML in display names
and passed that responsibility on frontends, compliant with Mastodon's
version of Mastodon API [1]. Pleroma-FE was subsequently modified to
escape the display name [2], however only in the "name_html" field. This
was fine however, since that's what the code rendering display names used.

However, 2 months ago an MR [3] refactoring the way the frontend does emoji
and mention rendering was merged. One of the things it did was moving away
from doing emoji rendering in the entity normalizer and use the unescaped
'user.name' in the rendering code, resulting in HTML injection being
possible again.

This patch escapes 'user.name' as well, as far as I can tell there is no
actual use for an unescaped display name in frontend code, especially
when it comes from MastoAPI, where it is not supposed to be HTML.

[1]: https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1052
[2]: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/2167
[3]: https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1392
2021-11-16 20:35:23 +03:00
..
helpers Merge branch 'fix-settings-anon' into 'develop' 2021-07-19 16:11:11 +00:00
tabs entity_normalizer: Escape name when parsing user 2021-11-16 20:35:23 +03:00
settings_modal.js cleanup + fix 2021-03-08 21:56:20 +02:00
settings_modal.scss Ensures the minimized modal is always 50px above the mobile browser bottom bar regardless of whether or not it is visible. 2020-07-23 16:36:21 +03:00
settings_modal.vue fix warnings 2021-05-31 14:08:12 +03:00
settings_modal_content.js more replacements + small renames 2020-10-20 22:54:43 +03:00
settings_modal_content.scss fix for filtering tab 2021-03-11 17:00:58 +02:00
settings_modal_content.vue more replacements + small renames 2020-10-20 22:54:43 +03:00