Test for Mastodon AccountView

Handles users and mentions.
This commit is contained in:
Roger Braun 2017-09-09 12:09:53 +02:00
commit c6bdc5960c
2 changed files with 51 additions and 0 deletions

View file

@ -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