mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
10 lines
265 B
Elixir
10 lines
265 B
Elixir
defmodule PhilomenaWeb.GalleryView do
|
|
use PhilomenaWeb, :view
|
|
|
|
alias Philomena.ImageScope
|
|
|
|
def scope(conn), do: ImageScope.scope(conn)
|
|
|
|
def show_subscription_link?(%{id: id}, %{id: id}), do: false
|
|
def show_subscription_link?(_user1, _user2), do: true
|
|
end
|