mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
13 lines
385 B
Elixir
13 lines
385 B
Elixir
defmodule PhilomenaWeb.Api.Rss.WatchedController do
|
|
use PhilomenaWeb, :controller
|
|
|
|
alias PhilomenaWeb.ImageLoader
|
|
|
|
def index(conn, _params) do
|
|
{:ok, {images, _tags}} = ImageLoader.search_string(conn, "my:watched")
|
|
|
|
# NB: this is RSS, but using the RSS format causes Phoenix not to
|
|
# escape HTML
|
|
render(conn, "index.html", layout: false, images: images)
|
|
end
|
|
end
|