summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Girka <thib.pleroma-6b5f@sitedethib.com>2019-08-07 20:55:37 +0000
committerAriadne Conill <ariadne@dereferenced.org>2019-08-14 01:50:21 +0000
commitb29dcc8c1b74a84e49d290cbea9b1c2f93f1cc5f (patch)
treefb793fad5d04e5f9e6396b3e1c3a75049f268018
parent6525fbac95f83a6050fcea44ad819387c42aa368 (diff)
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.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 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