projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[#2497] Media preview proxy: misc. improvements (`static` param support, dynamic...
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
views
/
account_view.ex
diff --git
a/lib/pleroma/web/mastodon_api/views/account_view.ex
b/lib/pleroma/web/mastodon_api/views/account_view.ex
index eef45b35d61dba658f2b6568ccfb8e5e5c5566b2..121ba1693155adf30f4c17b9be4d0c9b111bf001 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/views/account_view.ex
+++ b/
lib/pleroma/web/mastodon_api/views/account_view.ex
@@
-182,9
+182,9
@@
defmodule Pleroma.Web.MastodonAPI.AccountView do
display_name = user.name || user.nickname
avatar = User.avatar_url(user) |> MediaProxy.url()
display_name = user.name || user.nickname
avatar = User.avatar_url(user) |> MediaProxy.url()
- avatar_static = User.avatar_url(user) |> MediaProxy.preview_url()
+ avatar_static = User.avatar_url(user) |> MediaProxy.preview_url(
static: true
)
header = User.banner_url(user) |> MediaProxy.url()
header = User.banner_url(user) |> MediaProxy.url()
- header_static = User.banner_url(user) |> MediaProxy.preview_url()
+ header_static = User.banner_url(user) |> MediaProxy.preview_url(
static: true
)
following_count =
if !user.hide_follows_count or !user.hide_follows or opts[:for] == user do
following_count =
if !user.hide_follows_count or !user.hide_follows or opts[:for] == user do
@@
-247,7
+247,7
@@
defmodule Pleroma.Web.MastodonAPI.AccountView do
followers_count: followers_count,
following_count: following_count,
statuses_count: user.note_count,
followers_count: followers_count,
following_count: following_count,
statuses_count: user.note_count,
- note: user.bio
|| ""
,
+ note: user.bio,
url: user.uri || user.ap_id,
avatar: avatar,
avatar_static: avatar_static,
url: user.uri || user.ap_id,
avatar: avatar,
avatar_static: avatar_static,