mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
fix: open app definitions by address instead of version event id
Clicking an app in the recommendations editor (or any 31990 link) navigated to Route.Note(event.id) — the per-id version note, which the soft cache evicts and relays can't serve for replaceables — leaving the thread stuck on 'Event is loading or can't be found'. Route by addressTag() like the generic AddressableEvent branch already does. https://claude.ai/code/session_015dX5vWqvXUYD8rzPYX8vTB
This commit is contained in:
+3
-1
@@ -100,7 +100,9 @@ fun routeForInner(
|
||||
if (noteEvent.includeKind(5300)) {
|
||||
Route.ContentDiscovery(noteEvent.id)
|
||||
} else {
|
||||
Route.Note(noteEvent.id)
|
||||
// By address, not version id: the per-id note may have been
|
||||
// evicted and relays don't serve replaceables by old ids.
|
||||
Route.Note(noteEvent.addressTag())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user