ActivityPub user view: include tag if present.

This commit is contained in:
eal 2018-08-13 16:11:48 +03:00
parent f9d13558c8
commit 1ed1ff17a4

View file

@ -42,7 +42,8 @@ def render("user.json", %{user: user}) do
"image" => %{
"type" => "Image",
"url" => User.banner_url(user)
}
},
"tag" => user.info["source_data"]["tag"] || []
}
|> Map.merge(Utils.make_json_ld_header())
end