diff options
author | Thibaut Girka <thib.pleroma-6b5f@sitedethib.com> | 2019-08-07 21:40:53 +0000 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2019-08-14 01:50:21 +0000 |
commit | a3654d947967749211ff7d9d68c1365cfa439c52 (patch) | |
tree | dd2d751ff1595481a683ad1fe3e4eea4854f3dbc | |
parent | b29dcc8c1b74a84e49d290cbea9b1c2f93f1cc5f (diff) | |
download | pleroma-a3654d947967749211ff7d9d68c1365cfa439c52.tar.gz |
Return profile URL in MastodonAPI's `url` field
-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 b6cbb454b..69895fd71 100644 --- a/lib/pleroma/web/mastodon_api/views/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/account_view.ex @@ -112,7 +112,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do following_count: following_count, statuses_count: user_info.note_count, note: bio || "", - url: user.ap_id, + url: User.profile_url(user), avatar: image, avatar_static: image, header: header, |