aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/account_view.ex (renamed from lib/pleroma/web/mastodon_api/views/user_view.ex)9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/user_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex
index 88e32d6f9..5f6ca84d0 100644
--- a/lib/pleroma/web/mastodon_api/views/user_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/account_view.ex
@@ -24,4 +24,13 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
header_static: ""
}
end
+
+ def render("mention.json", %{user: user}) do
+ %{
+ id: user.id,
+ acct: user.nickname,
+ username: user.nickname,
+ url: user.ap_id
+ }
+ end
end