commit ae6102b4f63e79ae6246b09e0a8eb5b1e16e72eb
parent b8a24d9dd49f2d8d7e4d038387b0be2811b302b8
Author: William Casarin <jb55@jb55.com>
Date: Tue, 15 Nov 2022 15:13:12 -0800
web: don't render invalid share events
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/js/ui/render.js b/web/js/ui/render.js
@@ -90,14 +90,14 @@ function render_replying_to(model, ev) {
`
}
-function render_unknown_event(model, ev) {
- return "Unknown event"
+function render_unknown_event(damus, ev) {
+ return "Unknown event " + ev.kind
}
function render_boost(damus, view, ev, opts) {
//todo validate content
if (!ev.json_content)
- return render_unknown_event(ev)
+ return ""
//const profile = model.profiles[ev.pubkey]
opts.boosted = {