Fix invalid types due to typos

lib/pleroma/web/feed/feed_view.ex:135:unknown_type
Unknown type: NativeDateTime.t/0.

lib/pleroma/web/feed/feed_view.ex:148:unknown_type
Unknown type: NativeDateTime.t/0.
This commit is contained in:
Mark Felder 2024-01-20 17:22:40 -05:00
parent e5120a2703
commit f050a75b92
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ def escape(html) do
|> safe_to_string() |> safe_to_string()
end end
@spec to_rfc3339(String.t() | NativeDateTime.t()) :: String.t() @spec to_rfc3339(String.t() | NaiveDateTime.t()) :: String.t()
def to_rfc3339(date) when is_binary(date) do def to_rfc3339(date) when is_binary(date) do
date date
|> Timex.parse!("{ISO:Extended}") |> Timex.parse!("{ISO:Extended}")
@ -145,7 +145,7 @@ def to_rfc3339(nd) do
|> Timex.format!("{RFC3339}") |> Timex.format!("{RFC3339}")
end end
@spec to_rfc2822(String.t() | DateTime.t() | NativeDateTime.t()) :: String.t() @spec to_rfc2822(String.t() | DateTime.t() | NaiveDateTime.t()) :: String.t()
def to_rfc2822(datestr) when is_binary(datestr) do def to_rfc2822(datestr) when is_binary(datestr) do
datestr datestr
|> Timex.parse!("{ISO:Extended}") |> Timex.parse!("{ISO:Extended}")