mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
16 lines
No EOL
294 B
Elixir
16 lines
No EOL
294 B
Elixir
defmodule PhilomenaWeb.Api.Rss.WatchedView do
|
|
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
|
|
end |