mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +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)
|
||||
|> Repo.exists?()
|
||||
end
|
||||
|
||||
def active?(_poll), do: false
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue