Return profile URL in MastodonAPI's `url` field
authorThibaut Girka <thib.pleroma-6b5f@sitedethib.com>
Wed, 7 Aug 2019 21:40:53 +0000 (21:40 +0000)
committerThibaut Girka <thib.pleroma-6b5f@sitedethib.com>
Wed, 7 Aug 2019 21:40:53 +0000 (21:40 +0000)
lib/pleroma/web/mastodon_api/views/account_view.ex

index 82f8cd0207d0589b8361b47381e105684e4ccb3b..de084fd6ef0c61fd440914e0c8f34fb20c12f90c 100644 (file)
@@ -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,