Verified Commit 9bddb39f authored by Haelwenn's avatar Haelwenn

[Pleroma.Web.MastodonAPI.FilterView]: expires_at should be null when N/A

parent d571a571
......@@ -8,11 +8,17 @@ defmodule Pleroma.Web.MastodonAPI.FilterView do
def render("filter.json", %{filter: filter}) do
if filter.expires_at do
expires_at = Utils.to_masto_date(filter.expires_at)
expires_at = nil
id: to_string(filter.filter_id),
phrase: filter.phrase,
context: filter.context,
expires_at: Utils.to_masto_date(filter.expires_at),
expires_at: expires_at,
irreversible: filter.hide,
whole_word: false
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment