diff options
author | Thibaut Girka <thib.pleroma-6b5f@sitedethib.com> | 2019-08-07 21:40:53 +0000 |
---|---|---|
committer | Thibaut Girka <thib.pleroma-6b5f@sitedethib.com> | 2019-08-07 21:40:53 +0000 |
commit | 9c0da1009aa2100a206fae13f88ea9faddcd6bbd (patch) | |
tree | b132f78f3ad828eb4c228e869c2ed1a198a0b105 | |
parent | 089d53a961f14681cf91c923eeb67478ec230da9 (diff) | |
download | pleroma-9c0da1009aa2100a206fae13f88ea9faddcd6bbd.tar.gz pleroma-9c0da1009aa2100a206fae13f88ea9faddcd6bbd.zip |
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 82f8cd020..de084fd6e 100644 --- a/lib/pleroma/web/mastodon_api/views/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/account_view.ex @@ -106,7 +106,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do following_count: user_info.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, |