1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-25 08:35:13 +01:00

Simplify logic to mention.js url field

`User.profile_url` already fallbacks to ap_id
This commit is contained in:
Thibaut Girka 2019-08-07 20:55:37 +00:00
parent a10c840aba
commit 089d53a961

View File

@ -28,7 +28,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
id: to_string(user.id),
acct: user.nickname,
username: username_from_nickname(user.nickname),
url: User.profile_url(user) || user.ap_id
url: User.profile_url(user)
}
end