forked from AkkomaGang/akkoma
ActivityPub user view: include tag if present.
This commit is contained in:
parent
f9d13558c8
commit
1ed1ff17a4
1 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,8 @@ def render("user.json", %{user: user}) do
|
||||||
"image" => %{
|
"image" => %{
|
||||||
"type" => "Image",
|
"type" => "Image",
|
||||||
"url" => User.banner_url(user)
|
"url" => User.banner_url(user)
|
||||||
}
|
},
|
||||||
|
"tag" => user.info["source_data"]["tag"] || []
|
||||||
}
|
}
|
||||||
|> Map.merge(Utils.make_json_ld_header())
|
|> Map.merge(Utils.make_json_ld_header())
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue