Test for Mastodon AccountView
Handles users and mentions.
This commit is contained in:
parent
a22f2e683b
commit
c6bdc5960c
2 changed files with 51 additions and 0 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue