commit b0ff6813efac970cde0d89d5b6065a0566cc9534
parent 69575749e1e8e925b0ef33e7791c30e1ded1a489
Author: William Casarin <jb55@jb55.com>
Date: Fri, 11 Nov 2022 15:53:33 -0800
fix broken things
Diffstat:
2 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/web/damus.js b/web/damus.js
@@ -257,6 +257,8 @@ function process_event(model, ev)
process_json_content(ev)
else if (ev.kind === 5)
process_deletion_event(model, ev)
+ else if (ev.kind === 0)
+ process_profile_event(model, ev)
const last_notified = get_local_state('last_notified_date')
if (notified && (last_notified == null || ((ev.created_at*1000) > last_notified))) {
@@ -315,16 +317,6 @@ function handle_home_event(ids, model, relay, sub_id, ev) {
model.done_init = true
model.pool.unsubscribe(ids.account, [relay])
break
- case 0:
- handle_profile_event(model, ev)
- break
- }
- case ids.profiles:
- try {
- model.profile_events[ev.pubkey] = ev
- model.profiles[ev.pubkey] = JSON.parse(ev.content)
- } catch {
- console.log("failed to parse", ev.content)
}
}
}
diff --git a/web/index.html b/web/index.html
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Damus</title>
<link rel="stylesheet" href="styles.css?v=18">
- <!--<link rel="stylesheet" href="damus.css?v=21">-->
+ <link rel="stylesheet" href="damus.css?v=21">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
</head>
@@ -64,7 +64,7 @@
<script src="noble-secp256k1.js?v=1"></script>
<script src="bech32.js?v=1"></script>
<script src="nostr.js?v=6"></script>
- <script src="damus.js?v=58"></script>
+ <script src="damus.js?v=59"></script>
<script>
// I have to delay loading to wait for nos2x
const relay = setTimeout(damus_web_init, 100)