Profile link

FossilOrigin-Name: 16522419b8e0f246b6cd04a3c7e71ef1e7844a8c72e3dcf42eeca64f5c788f19
This commit is contained in:
nekobit 2022-10-11 03:14:07 +00:00
parent fdc6defa0d
commit b565e7e965

View file

@ -182,6 +182,7 @@ HTTP::Response Route::ActivityPub::user(std::any& args, const HTTP::Request& req
const std::string user_url = Instance::instance_host_https(true) + "users/" + user.acct;
root.AddMember("type", "Person", a);
root.AddMember("id", user_url, a);
root.AddMember("url", user_url, a);
root.AddMember("name", user.display_name, a);
root.AddMember("preferredUsername", user.acct, a);
root.AddMember("summary", user.bio, a);