logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 3dca3639fd3ec61b547b9f1a55a0fbd73a3647cd
parent 8b96ea93776fd1eb462a7c54822d4f8ad6a9e776
Author: Shpuld Shpludson <shp@cock.li>
Date:   Wed, 21 Apr 2021 05:49:15 +0000

Merge branch 'mp/normaliser-safety' into 'develop'

entity_normalizer: safely check screen_name

See merge request pleroma/pleroma-fe!1383

Diffstat:

Msrc/services/entity_normalizer/entity_normalizer.service.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js @@ -205,7 +205,7 @@ export const parseUser = (data) => { // Convert punycode to unicode for UI output.screen_name_ui = output.screen_name - if (output.screen_name.includes('@')) { + if (output.screen_name && output.screen_name.includes('@')) { const parts = output.screen_name.split('@') let unicodeDomain = punycode.toUnicode(parts[1]) if (unicodeDomain !== parts[1]) {