[Pleroma.Web.MastodonAPI.FilterView] fix expires_at being a unsafe variable
This commit is contained in:
parent
9bddb39ff0
commit
6973b77e94
|
@ -8,10 +8,11 @@ def render("filters.json", %{filters: filters} = opts) do
|
||||||
end
|
end
|
||||||
|
|
||||||
def render("filter.json", %{filter: filter}) do
|
def render("filter.json", %{filter: filter}) do
|
||||||
|
expires_at =
|
||||||
if filter.expires_at do
|
if filter.expires_at do
|
||||||
expires_at = Utils.to_masto_date(filter.expires_at)
|
Utils.to_masto_date(filter.expires_at)
|
||||||
else
|
else
|
||||||
expires_at = nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
|
Loading…
Reference in a new issue