mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
forum pages without polls have no active poll
This commit is contained in:
parent
5c87e62179
commit
5287cf0430
1 changed files with 2 additions and 0 deletions
|
@ -109,4 +109,6 @@ defmodule Philomena.Polls do
|
||||||
|> where([p], p.id == ^poll_id and p.active_until > ^now)
|
|> where([p], p.id == ^poll_id and p.active_until > ^now)
|
||||||
|> Repo.exists?()
|
|> Repo.exists?()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def active?(_poll), do: false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue