Apply suggestion to lib/pleroma/web/twitter_api/views/remote_follow_view.ex
authorMaksim <parallel588@gmail.com>
Sun, 22 Dec 2019 17:58:54 +0000 (17:58 +0000)
committerMaksim <parallel588@gmail.com>
Sun, 22 Dec 2019 17:58:54 +0000 (17:58 +0000)
lib/pleroma/web/twitter_api/views/remote_follow_view.ex

index 8f1f21bce44c419d0449c474fa7a1139499a19ee..fb61099065e1c7f4e83ca43bb5bfb587681642ee 100644 (file)
@@ -6,5 +6,5 @@ defmodule Pleroma.Web.TwitterAPI.RemoteFollowView do
   use Pleroma.Web, :view
   import Phoenix.HTML.Form
 
-  def avatar_url(user), do: Pleroma.User.avatar_url(user)
+  defdelegate avatar_url(user), to: Pleroma.User.avatar_url
 end