diff options
author | Thibaut Girka <thib.pleroma-6b5f@sitedethib.com> | 2019-08-07 20:55:37 +0000 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2019-08-14 01:50:21 +0000 |
commit | b29dcc8c1b74a84e49d290cbea9b1c2f93f1cc5f (patch) | |
tree | fb793fad5d04e5f9e6396b3e1c3a75049f268018 | |
parent | 6525fbac95f83a6050fcea44ad819387c42aa368 (diff) | |
download | pleroma-b29dcc8c1b74a84e49d290cbea9b1c2f93f1cc5f.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 1cd8b62c8..b6cbb454b 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 |