From 8297334ea55a70c19f5996cae8ced23b094ec04e Mon Sep 17 00:00:00 2001 From: Steffen Beyer Date: Fri, 10 Apr 2026 12:31:59 +0200 Subject: [PATCH] refactor: keep aether timeline on cluster-aware nostr wrappers Retain TimelineLive on the plugin-facing Nostr service after the host implementation switched to multi-relay defaults, so the plugin benefits from cluster-aware reads and publish fanout without falling back to direct host internals. --- lib/aether_web/live/timeline_live.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/aether_web/live/timeline_live.ex b/lib/aether_web/live/timeline_live.ex index 65519db..59a0d16 100644 --- a/lib/aether_web/live/timeline_live.ex +++ b/lib/aether_web/live/timeline_live.ex @@ -95,7 +95,7 @@ defmodule AetherWeb.TimelineLive do @impl true def terminate(_reason, socket) do - if is_reference(socket.assigns[:subscription_ref]) do + if socket.assigns[:subscription_ref] do Nostr.unsubscribe(socket.assigns.subscription_ref) end