diff options
author | Thibaut Girka <thib.pleroma-6b5f@sitedethib.com> | 2019-08-07 20:55:37 +0000 |
---|---|---|
committer | Thibaut Girka <thib.pleroma-6b5f@sitedethib.com> | 2019-08-07 20:55:37 +0000 |
commit | 089d53a961f14681cf91c923eeb67478ec230da9 (patch) | |
tree | 736604ca9c17159b1936d74d959bfdc2789388c1 | |
parent | a10c840abaeb8402051665412fbfd50e4a5ea054 (diff) | |
download | pleroma-089d53a961f14681cf91c923eeb67478ec230da9.tar.gz |
Simplify logic to mention.js `url` field
`User.profile_url` already fallbacks to ap_id
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/account_view.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex index 3212dcbc3..82f8cd020 100644 --- a/lib/pleroma/web/mastodon_api/views/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/account_view.ex @@ -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 |