philomena/lib/philomena_web/views/api/rss/watched_view.ex

17 lines
295 B
Elixir
Raw Permalink Normal View History

2019-12-04 01:50:23 +01:00
defmodule PhilomenaWeb.Api.Rss.WatchedView do
2019-12-01 00:11:24 +01:00
use PhilomenaWeb, :view
alias PhilomenaWeb.ImageView
def last_build_date do
DateTime.utc_now()
|> DateTime.to_iso8601()
end
def medium_url(image) do
image
|> ImageView.thumb_urls(false)
|> Map.get(:medium)
end
2020-01-11 05:20:19 +01:00
end