akkoma/lib/pleroma/web/twitter_api/views/remote_follow_view.ex

16 lines
407 B
Elixir
Raw Normal View History

# Pleroma: A lightweight social networking server
2022-02-25 23:11:42 -07:00
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.TwitterAPI.RemoteFollowView do
use Pleroma.Web, :view
import Phoenix.HTML.Form
2022-02-21 16:42:25 -07:00
alias Pleroma.Web.Gettext
def avatar_url(user) do
user
|> Pleroma.User.avatar_url()
|> Pleroma.Web.MediaProxy.url()
end
end