akkoma-fe/src/components/settings_modal/tabs
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
..
security_tab Use more specific button titles instead of general.submit 2021-03-15 13:28:33 +03:00
theme_tab Merge branch 'develop' into 'themeApply' 2021-09-09 21:51:39 +00:00
data_import_export_tab.js added import/export mutes 2020-09-08 09:41:42 +03:00
data_import_export_tab.vue added import/export mutes 2020-09-08 09:41:42 +03:00
filtering_tab.js implement ChoiceSetting for settings modal similar to BooleanSetting 2021-03-11 16:55:14 +02:00
filtering_tab.vue fix warnings 2021-05-31 14:02:36 +03:00
general_tab.js Use cleaner instance config check for shoutbox setting 2021-06-15 00:59:36 +00:00
general_tab.vue remove new options for style and separate line, now groups all chained 2021-08-12 02:56:40 +03:00
mutes_and_blocks_tab.js Autocomplete domain mutes from list of known instances 2020-06-08 13:17:18 +02:00
mutes_and_blocks_tab.scss misc fixes 2020-05-24 02:29:09 +03:00
mutes_and_blocks_tab.vue migrate to v-slot 2021-04-07 22:42:34 +03:00
notifications_tab.js moved stuff from settings, cleaned up naming for tabs, added close and peek 2020-05-10 06:46:06 +03:00
notifications_tab.vue Use more specific button titles instead of general.submit 2021-03-15 13:28:33 +03:00
profile_tab.js entity_normalizer: Escape name when parsing user 2021-11-16 20:35:23 +03:00
profile_tab.scss give delete field its own class 2021-01-22 12:06:39 +02:00
profile_tab.vue Use more specific button titles instead of general.submit 2021-03-15 13:28:33 +03:00
version_tab.js moved stuff from settings, cleaned up naming for tabs, added close and peek 2020-05-10 06:46:06 +03:00
version_tab.vue eslint --fix + small fix 2020-05-25 03:43:55 +03:00