mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-06-28 10:00:45 +00:00
420da14b61
Pass remote follow avatar into media proxy Closes #2830 See merge request pleroma/pleroma!3690
16 lines
407 B
Elixir
16 lines
407 B
Elixir
# Pleroma: A lightweight social networking server
|
|
# 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
|
|
alias Pleroma.Web.Gettext
|
|
|
|
def avatar_url(user) do
|
|
user
|
|
|> Pleroma.User.avatar_url()
|
|
|> Pleroma.Web.MediaProxy.url()
|
|
end
|
|
end
|