diff --git a/lib/pinchflat_web/controllers/sources/source_html.ex b/lib/pinchflat_web/controllers/sources/source_html.ex
index 4692a043..a552da2a 100644
--- a/lib/pinchflat_web/controllers/sources/source_html.ex
+++ b/lib/pinchflat_web/controllers/sources/source_html.ex
@@ -40,11 +40,12 @@ defmodule PinchflatWeb.Sources.SourceHTML do
end
def rss_feed_url(conn, source) do
+ # TODO: finally address this. I shouldn't have to use concatination here
url(conn, ~p"/sources/#{source.uuid}/feed") <> ".xml"
end
def opml_feed_url(conn) do
- url(conn, ~p"/sources/opml") <> ".xml"
+ url(conn, ~p"/sources/opml.xml?#{[route_token: Settings.get!(:route_token)]}")
end
def output_path_template_override_placeholders(media_profiles) do
diff --git a/lib/pinchflat_web/controllers/sources/source_html/actions_dropdown.html.heex b/lib/pinchflat_web/controllers/sources/source_html/actions_dropdown.html.heex
index f2681c08..43d0e64c 100644
--- a/lib/pinchflat_web/controllers/sources/source_html/actions_dropdown.html.heex
+++ b/lib/pinchflat_web/controllers/sources/source_html/actions_dropdown.html.heex
@@ -1,18 +1,16 @@
<.button_dropdown text="Actions" class="justify-center w-full sm:w-50">
<:option>
- copied = true,
- () => copied = false
- )
- "}
- >
+ <.link href={rss_feed_url(@conn, @source)} x-data="{ copied: false }" x-on:click={~s"
+ $event.preventDefault();
+ copyWithCallbacks(
+ '#{rss_feed_url(@conn, @source)}',
+ () => copied = true,
+ () => copied = false
+ )
+ "}>
Copy RSS Feed
<.icon name="hero-check" class="ml-2 h-4 w-4" />
-
+
<:option>
Sources
-