Linkify custom fields values in ActivityPub.UserViewx
This commit is contained in:
parent
5178f960c3
commit
7d6f8a7fd7
2 changed files with 6 additions and 1 deletions
|
|
@ -33,7 +33,11 @@ defmodule Pleroma.Web.ActivityPub.UserViewTest do
|
|||
assert %{
|
||||
"attachment" => [
|
||||
%{"name" => "foo", "type" => "PropertyValue", "value" => "bar"},
|
||||
%{"name" => "website", "type" => "PropertyValue", "value" => "cofe.my"}
|
||||
%{
|
||||
"name" => "website",
|
||||
"type" => "PropertyValue",
|
||||
"value" => "<a href=\"http://cofe.my\">cofe.my</a>"
|
||||
}
|
||||
]
|
||||
} = UserView.render("user.json", %{user: user})
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue