You've already forked tribes-plugin-aether
forked from tribes/tribes-plugin-template
refactor: use plugin route helpers in timeline
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user