MastoAPI: Add max_toot_chars.
[akkoma] / lib / pleroma / web / mastodon_api / views / account_view.ex
index 16322cf219ea884654da118f32ec9ef991299a66..02f1e60bb889d661883a553c64002c178f8b62b3 100644 (file)
@@ -4,7 +4,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
   alias Pleroma.Web.MastodonAPI.AccountView
   alias Pleroma.Web.CommonAPI.Utils
 
-  defp image_url(%{"url" => [ %{ "href" => href } | t ]}), do: href
+  defp image_url(%{"url" => [ %{ "href" => href } | _ ]}), do: href
   defp image_url(_), do: nil
 
   def render("accounts.json", %{users: users} = opts) do