From: Thibaut Girka Date: Wed, 7 Aug 2019 20:55:37 +0000 (+0000) Subject: Simplify logic to mention.js `url` field X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=089d53a961f14681cf91c923eeb67478ec230da9;p=akkoma Simplify logic to mention.js `url` field `User.profile_url` already fallbacks to ap_id --- diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex index 3212dcbc3..82f8cd020 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.profile_url(user) || user.ap_id + url: User.profile_url(user) } end