From: Thibaut Girka Date: Wed, 7 Aug 2019 20:29:30 +0000 (+0000) Subject: Return profile URL when available instead of actor URI for MastodonAPI mention URL X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a10c840abaeb8402051665412fbfd50e4a5ea054;p=akkoma Return profile URL when available instead of actor URI for MastodonAPI mention URL Fixes #1165 --- diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex index b2b06eeb9..3212dcbc3 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