diff options
author | Thibaut Girka <thib.pleroma-6b5f@sitedethib.com> | 2019-08-07 20:29:30 +0000 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2019-08-14 01:50:21 +0000 |
commit | 6525fbac95f83a6050fcea44ad819387c42aa368 (patch) | |
tree | 9e4c6138593d4e3847861042a03d6e4b4df4cac9 | |
parent | ba21d515d6ace80109b5f38934b33def8243e797 (diff) | |
download | pleroma-6525fbac95f83a6050fcea44ad819387c42aa368.tar.gz |
Return profile URL when available instead of actor URI for MastodonAPI mention URL
Fixes #1165
-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 edd37de2f..1cd8b62c8 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.ap_id + url: User.profile_url(user) || user.ap_id } end |