refactor: use plugin route helpers in timeline

This commit is contained in:
2026-04-10 13:58:45 +02:00
parent 8297334ea5
commit 6fc8be20bf
+3 -2
View File
@@ -7,6 +7,7 @@ defmodule AetherWeb.TimelineLive do
alias Tribes.Plugin.Services.Cluster
alias Tribes.Plugin.Services.Communities
alias Tribes.Plugin.Services.Nostr
alias Tribes.Plugin.Services.Routes
@impl true
def mount(_params, _session, socket) do
@@ -124,7 +125,7 @@ defmodule AetherWeb.TimelineLive do
{timeline_description(@tribe)}
</p>
<p class="text-xs text-base-content/55">
Known cluster relays: {@relay_count}. Publishing and live reads still use the current node relay for now.
Known cluster relays: {@relay_count}. Publishing and reads fan out across the cluster relay set by default.
</p>
</div>
<div class="rounded-full border border-base-300 px-4 py-2 text-sm font-medium text-base-content/70">
@@ -170,7 +171,7 @@ defmodule AetherWeb.TimelineLive do
<article :for={{id, note} <- @streams.notes} id={id} class="card bg-base-100 shadow-sm">
<div class="card-body gap-2">
<div class="flex items-center justify-between gap-4 text-xs text-base-content/60">
<a href={"/u/#{note["pubkey"]}"} class="link link-hover font-medium">
<a href={Routes.profile_path(note["pubkey"])} class="link link-hover font-medium">
{author_label(@profile_cache, note["pubkey"])}
</a>
<span