aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThibaut Girka <thib.pleroma-6b5f@sitedethib.com>2019-08-07 20:55:37 +0000
committerThibaut Girka <thib.pleroma-6b5f@sitedethib.com>2019-08-07 20:55:37 +0000
commit089d53a961f14681cf91c923eeb67478ec230da9 (patch)
tree736604ca9c17159b1936d74d959bfdc2789388c1 /lib
parenta10c840abaeb8402051665412fbfd50e4a5ea054 (diff)
downloadpleroma-089d53a961f14681cf91c923eeb67478ec230da9.tar.gz
Simplify logic to mention.js `url` field
`User.profile_url` already fallbacks to ap_id
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/account_view.ex2
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