logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 0fcdcc2300cc23eee27f1d20bf0a8008581329d1
parent 72480e7b2fc19beaa8a0a524e8b1c83442debd01
Author: marcin mikołajczak <git@mkljczk.pl>
Date:   Wed,  7 Feb 2024 17:55:52 +0100

Use User.full_nickname/1 in oauth html template

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>

Diffstat:

Achangelog.d/oauth-nickname.skip2++
Mlib/pleroma/web/templates/o_auth/o_auth/show.html.eex2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/changelog.d/oauth-nickname.skip b/changelog.d/oauth-nickname.skip @@ -0,0 +1 @@ +Use User.full_nickname/1 in oauth html template +\ No newline at end of file diff --git a/lib/pleroma/web/templates/o_auth/o_auth/show.html.eex b/lib/pleroma/web/templates/o_auth/o_auth/show.html.eex @@ -13,7 +13,7 @@ <div class="account-header__avatar" style="background-image: url('<%= Pleroma.User.avatar_url(@user) %>')"></div> <div class="account-header__meta"> <div class="account-header__display-name"><%= @user.name %></div> - <div class="account-header__nickname">@<%= @user.nickname %>@<%= Pleroma.User.get_host(@user) %></div> + <div class="account-header__nickname">@<%= Pleroma.User.full_nickname(@user.nickname) %></div> </div> </div> <% end %>