mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
chat: virtualize message-to-json conversion
Bad `@t` text might crash and fully halt the json conversion, preventing any data from being delivered to the frontend. Fixes #2878.
This commit is contained in:
parent
69b6495d3d
commit
7152cb74a9
@ -41,9 +41,16 @@
|
||||
(fall ((ot output+(ar dank) ~) a) ~)
|
||||
::
|
||||
++ lett
|
||||
=, enjs:format
|
||||
|= =letter
|
||||
^- json
|
||||
=, enjs:format
|
||||
=; result=(each json tang)
|
||||
?- -.result
|
||||
%& p.result
|
||||
%| (frond %text s+'[[json rendering error]]')
|
||||
==
|
||||
%- mule
|
||||
|.
|
||||
?- -.letter
|
||||
%text
|
||||
(frond %text s+text.letter)
|
||||
|
Loading…
Reference in New Issue
Block a user